You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I auto format Svelte file in VS Code, it changes the spacings and structure of code a little bit. And when I build it gives this error [!] (plugin svelte) TypeError: Cannot read property 'trim' of undefined
Logs
To Reproduce
The .svelte file before formatting (works perfectly) :
The .svelte file after formatting (gives build error) :
Expected behavior
It should work in both scenarios. Because the auto-formatting should not be a problem.
Stacktraces
Stack trace
bundles src/main.ts → public/build/bundle.js...
[!] (plugin svelte) TypeError: Cannot read property 'trim' of undefined
src/main/main.svelte
TypeError: Cannot read property 'trim' of undefined
at Object.exports.getTagInfo (/Users/dhyeymoliya/Documents/developer/svelte-app/node_modules/svelte-preprocess/dist/modules/tagInfo.js:25:35)
at /Users/dhyeymoliya/Documents/developer/svelte-app/node_modules/svelte-preprocess/dist/autoProcess.js:80:93
at Object.transformMarkup (/Users/dhyeymoliya/Documents/developer/svelte-app/node_modules/svelte-preprocess/dist/modules/markup.js:25:45)
at markup (/Users/dhyeymoliya/Documents/developer/svelte-app/node_modules/svelte-preprocess/dist/autoProcess.js:114:25)
at preprocess (/Users/dhyeymoliya/Documents/developer/svelte-app/node_modules/svelte/src/compiler/preprocess/index.ts:86:27)
at Object.transform (/Users/dhyeymoliya/Documents/developer/svelte-app/node_modules/rollup-plugin-svelte/index.js:221:26)
at /Users/dhyeymoliya/Documents/developer/svelte-app/node_modules/rollup/dist/shared/rollup.js:18615:25
Information about your project:
Your browser and the version: N/A
Your operating system: OS X 10.15.6
svelte-preprocess version : 4.0.0
Project uses or Rollup
Additional context
I am using Preprocessor and distributing my .css, .js and .html files outside the .svelte file.
The text was updated successfully, but these errors were encountered:
Describe the bug
When I auto format Svelte file in VS Code, it changes the spacings and structure of code a little bit. And when I build it gives this error
[!] (plugin svelte) TypeError: Cannot read property 'trim' of undefined
Logs
To Reproduce
The
.svelte
file before formatting (works perfectly) :The
.svelte
file after formatting (gives build error) :Expected behavior
It should work in both scenarios. Because the auto-formatting should not be a problem.
Stacktraces
Stack trace
Information about your project:
Your browser and the version:
N/A
Your operating system:
OS X 10.15.6
svelte-preprocess
version :4.0.0
Project uses or Rollup
Additional context
I am using Preprocessor and distributing my
.css
,.js
and.html
files outside the.svelte
file.The text was updated successfully, but these errors were encountered: