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
{{ message }}
Repository navigation
[SvelteKit] Vite dev server won't start up after updating to v6.0.1 #14516
There should be no Error on starting the dev server, using vite 6.X.
Actual Result
After upgrading ti vite > 6.x I am getting the follwing error after starting the dev server:
Error: Failed to resolve entry for package "@sentry/sveltekit". The package may have incorrect main/module/exports specified in its package.json: No known conditions for "." specifier in "@sentry/sveltekit" package
After downgrading to vite 5.x again, the Error seems to be gone.
[commonjs--resolver] Failed to resolve entry for package "@sentry/remix". The package may have incorrect main/module/exports specified in its package.json: No known conditions for "." specifier in "@sentry/remix" package
I do recall some issues where installing @sentry/sveltekit as a dev dependency caused module resolution problems. We always recommend installing the SDK as a dependency.
Let me check with pnpm then...
Update: I checked my repro attempt with pnpm and I still can't reproduce this.
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
Activity
herkulano commentedon Nov 28, 2024
Same issue for
@sentry/remixchargome commentedon Nov 28, 2024
Hi @esyon thanks for reporting this, we'll have a look.
Lms24 commentedon Nov 29, 2024
Just a guess but I think this is related to the "node" exports condition (both in Remix and SvelteKit):
We probably need to change it to
"node": {"require": "./build/cjs/index.server.js"}thibault60000 commentedon Nov 29, 2024
Same for lots of libs like bwip-js / @zerodevx/svelte-toast svelte-tel-input
chargome commentedon Nov 29, 2024
@Lms24
Did fix the server entry but it still crashes with the same error in the browser
36 remaining items
Lms24 commentedon Jan 9, 2025
I do recall some issues where installing
@sentry/sveltekitas a dev dependency caused module resolution problems. We always recommend installing the SDK as adependency.Let me check with pnpm then...
Update: I checked my repro attempt with
pnpmand I still can't reproduce this.getsantry commentedon Jan 31, 2025
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label
Waiting for: Community, I will leave it alone ... forever!"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
danieluntiedt commentedon Jan 5, 2026
This has frustrated me for a while, it turns out using 'resolve' in vite.config was causing the issue