Skip to content

From 4.9.0: Cannot read property 'split' of undefined #396

@frederikhors

Description

@frederikhors

Upgrading from 4.8.0 to 4.9.0 I get this:

12:45:35 PM [vite] Internal server error: Cannot read property 'split' of undefined
  Plugin: vite-plugin-svelte
  File: C:/kit/src/routes/__error.svelte
      at Object.parseAttributes (C:\kit\node_modules\svelte-preprocess\dist\modules\markup.js:19:10)
      at getScriptContent (C:\kit\node_modules\svelte-preprocess\dist\transformers\typescript.js:47:38)
      at injectVarsToCode (C:\kit\node_modules\svelte-preprocess\dist\transformers\typescript.js:83:20)
      at mixedImportsTranspiler (C:\kit\node_modules\svelte-preprocess\dist\transformers\typescript.js:205:26)
      at transformer (C:\kit\node_modules\svelte-preprocess\dist\transformers\typescript.js:275:11)
      at Object.exports.transform (C:\kit\node_modules\svelte-preprocess\dist\autoProcess.js:37:12)
      at async C:\kit\node_modules\svelte-preprocess\dist\autoProcess.js:113:29
      at async script (C:\kit\node_modules\svelte-preprocess\dist\autoProcess.js:143:33)
      at async process_single_tag (file:///C:/kit/node_modules/svelte/compiler.mjs:31534:27)
      at async Promise.all (index 0)
Cannot read property 'split' of undefined

I'm using SvelteKit@1.0.0-next.162.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions