Vite error when evaluating SSR module

Getting this error when navigating to a route
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
}
This started happening when I started using suid material. I have also set SSR to false in 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()],
},
});
Feels like im missing smth pretty simple here....
1 Reply
the magic guy
the magic guy2mo ago
Hmm seems like suid material doesnt work well with solid js 1.0 I removed suid material, and everything works as expected