Open peterreeves opened 3 months ago
Small update, I just tried this again with pnpm and it works correctly. I guess this might be the kick I need to start switching my projects from npm to pnpm...
I bumped into this too... using npm workspace with both svelte4 and 5 packages in it.
Describe the bug
Svelte 5 appears not to work in monorepo setups. I've tried both a setup with turborepo, and a smaller setup just using NPM workspaces. I've included the turborepo setup below as it's simpler to setup.
Reproduction
( Following the turborepo example https://github.com/vercel/turbo/tree/main/examples/with-svelte )
After setup, observe that
npm run dev
works correctly when visiting the page..Update either of the "web" or "docs" project with
"svelte": "^5.0.0-next.1"
and runnpm i
. Runnpm run dev
again, and see that the page no longer loads, with this error displayed (filepaths edited):Logs
No response
System Info
Severity
blocking an upgrade