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
If you don't define emitCss in the config passed to rollup-plugin-svelte, and you're using [email protected], and your component is missing a .css file, then an error is thrown:
[!] (plugin svelte) TypeError: Cannot read properties of null (reading 'code')
Hello.svelte
at Object.transform (/workspace/rollup-demo/node_modules/rollup-plugin-svelte/index.js:154:32)
at /workspace/rollup-demo/node_modules/rollup/dist/shared/rollup.js:1008:40
If you don't define
emitCss
in the config passed torollup-plugin-svelte
, and you're using[email protected]
, and your component is missing a.css
file, then an error is thrown:The error is thrown from this line:
rollup-plugin-svelte/index.js
Line 154 in ed67842
This same error does not occur with Svelte v4.
Here is a minimal repro.
You can repro by doing:
git clone https://gist.github.com/nolanlawson/91dac64f8f50aa9d61bb23e23d077ddf repro cd repro npm install --legacy-peer-deps npx rollup -c
Node and npm versions:
As a workaround, you can set
emitCss: false
in the config.The text was updated successfully, but these errors were encountered: