-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Vite gives multiple errors:
Error when evaluating SSR module /src/routes/index.tsx: failed to import "solid-blocks"
Error when evaluating SSR module /node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/solid-start/root/FileRoutes.tsx: failed to import "/src/routes/index.tsx"
Error when evaluating SSR module /src/root.tsx: failed to import "/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/solid-start/root/FileRoutes.tsx"
SyntaxError: Cannot use import statement outside a module
etc.
Any fixes available? Changing / removing excludes, externals or noExternals do not help.
vite.config.ts:
import solid from "solid-start/vite";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [
solid({
ssr: true,
experimental: {
islandsRouter: true,
islands: true
}
})],
optimizeDeps: {
include: ['mapbox-gl'],
exclude: ["solid-blocks"]
},
ssr: {
external: ["solid-blocks"]
}
});Metadata
Metadata
Assignees
Labels
No labels