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
Vite resolver conditions exclude Svelte-only package exports #235
Stack54's generated Vite config currently sets resolver conditions to only browser and default:
resolve: {conditions: ["browser","default"]}
This breaks packages whose exports map exposes an entry only through the svelte condition, such as @inertiajs/svelte@2.3.23.
Reproduction
In a Stack54 app using Svelte and Inertia:
import{createInertiaApp}from"@inertiajs/svelte";
Run:
pnpm run build
Actual result
Vite fails during SSR build:
Failed to resolve entry for package "@inertiajs/svelte". The package may have incorrect main/module/exports specified in its package.json: No known conditions for "." specifier in "@inertiajs/svelte" package
The installed @inertiajs/svelte package has this root export:
Activity