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
As of 0.14.1 on Linux I get this error when trying to render a Svelte component in a LiveView template.
Component.render(...) is no longer valid in Svelte 5. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes for more information
Error: Component.render(...) is no longer valid in Svelte 5. See https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes for more information
at Counter.render (/home/erandre7/development/no_code_monitoring/app/priv/svelte/server.js:2167:9)
at render2 (/home/erandre7/development/no_code_monitoring/app/priv/svelte/server.js:2193:22)
at getResponse (/home/erandre7/development/no_code_monitoring/app/deps/nodejs/priv/server.js:54:25)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Interface.onLine (/home/erandre7/development/no_code_monitoring/app/deps/nodejs/priv/server.js:63:33)
Solved by downgrading to Svelte 4 with npm i svelte@4 in the assets folder.
The text was updated successfully, but these errors were encountered:
To clarify I wasn't trying to install 5, I followed the instructions in the readme and Svelte 5 was installed, which crashed the application when I tried to run it. I think the npm scripts are installing Svelte 5 by default now that it's out of beta.
As of 0.14.1 on Linux I get this error when trying to render a Svelte component in a LiveView template.
Solved by downgrading to Svelte 4 with
npm i svelte@4
in theassets
folder.The text was updated successfully, but these errors were encountered: