Vite error when evaluating SSR module
Getting this error when navigating to a route
This started happening when I started using suid material.
I have also set SSR to false in
Feels like im missing smth pretty simple here....
2:52:46 p.m. [vite] Error when evaluating SSR module #vinxi/handler/ssr: failed to import "/src/entry-server.tsx"
|- TypeError: __vite_ssr_import_0__.template is not a function
at eval (/home/shawn/projects/gh_actions_dashboard/solid-project/node_modules/@solidjs/start/dist/server/renderAsset.jsx:11:52)
at async instantiateModule (file:///home/shawn/projects/gh_actions_dashboard/solid-project/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:55036:9)
[h3] [unhandled] TypeError: __vite_ssr_import_0__.template is not a function
at eval (/home/shawn/projects/gh_actions_dashboard/solid-project/node_modules/@solidjs/start/dist/server/renderAsset.jsx:11:52)
at async instantiateModule (file:///home/shawn/projects/gh_actions_dashboard/solid-project/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:55036:9) {
cause: TypeError: __vite_ssr_import_0__.template is not a function
at eval (/home/shawn/projects/gh_actions_dashboard/solid-project/node_modules/@solidjs/start/dist/server/renderAsset.jsx:11:52)
at async instantiateModule (file:///home/shawn/projects/gh_actions_dashboard/solid-project/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:55036:9),
statusCode: 500,
fatal: false,
unhandled: true,
statusMessage: undefined,
data: undefined
}
2:52:46 p.m. [vite] Error when evaluating SSR module #vinxi/handler/ssr: failed to import "/src/entry-server.tsx"
|- TypeError: __vite_ssr_import_0__.template is not a function
at eval (/home/shawn/projects/gh_actions_dashboard/solid-project/node_modules/@solidjs/start/dist/server/renderAsset.jsx:11:52)
at async instantiateModule (file:///home/shawn/projects/gh_actions_dashboard/solid-project/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:55036:9)
[h3] [unhandled] TypeError: __vite_ssr_import_0__.template is not a function
at eval (/home/shawn/projects/gh_actions_dashboard/solid-project/node_modules/@solidjs/start/dist/server/renderAsset.jsx:11:52)
at async instantiateModule (file:///home/shawn/projects/gh_actions_dashboard/solid-project/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:55036:9) {
cause: TypeError: __vite_ssr_import_0__.template is not a function
at eval (/home/shawn/projects/gh_actions_dashboard/solid-project/node_modules/@solidjs/start/dist/server/renderAsset.jsx:11:52)
at async instantiateModule (file:///home/shawn/projects/gh_actions_dashboard/solid-project/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:55036:9),
statusCode: 500,
fatal: false,
unhandled: true,
statusMessage: undefined,
data: undefined
}
app.config.ts
:
export default defineConfig({
ssr: false,
solid: {
ssr: false
},
vite: {
plugins: [suidPlugin(), solidPlugin()],
},
});
export default defineConfig({
ssr: false,
solid: {
ssr: false
},
vite: {
plugins: [suidPlugin(), solidPlugin()],
},
});
1 Reply
Hmm seems like suid material doesnt work well with solid js 1.0
I removed suid material, and everything works as expected