Open maximdeclercq opened 8 months ago
Yarn PnP is broken, and we don't support it — if it ever worked, it was by accident. It is a frequent source of misery for OSS maintainers, and we strongly recommend using nodeLinker: 'node-modules'
or (better) just using npm/pnpm.
I'm using pnpm and getting same error after bumping from v2 to v2.3
Error: Cannot find package '@sveltejs/vite-plugin-svelte' imported from /Users/.../kit/dummy.js
Solved it... I didn't have this dev dependency:
"@sveltejs/vite-plugin-svelte": "^3.0.1",
So I was getting the dummy.js error posted above (not the nicest error!).
I had missed this migration step for kit v2:
@sveltejs/vite-plugin-svelte@3 (this is now required as a peerDependency of SvelteKit — previously it was directly depended upon)
Describe the bug
Yarn 4 Plug'n'Play/Zero-installs were supported up until SvelteKit 2.0.7.
Downgrading with yarn add -D @sveltejs/kit@2.0.7 resolves any issue with Yarn 4 Plug'n'Play/Zero-installs.
Ever since SvelteKit 2.0.8, Plug'n'Play/Zero-installs are no longer supported due to the incompatibility with
import-meta-resolve
.Reproduction
create-svelte
Enable Yarn 4 Plug'n'Play/Zero-install and install packages
Run development server
Logs
System Info
Severity
annoyance
Additional Information
No response