SolidJSS
SolidJSโ€ข3y agoโ€ข
6 replies
lars

Monorepo error with SolidStart `__vite_ssr_import_0__.template is not a function`

I've got a shared UI library (compiled into esm + cjs with vite) that is used with both a regular SolidJS app and a SolidStart app. It's working fine in the SolidJS app, but when importing the lib in the SolidStart app, I'm getting a pretty cryptic error:

__vite_ssr_import_0__.template is not a function
TypeError: __vite_ssr_import_0__.template is not a function
    at /@fs/C:/Projects/Glazer/libs/ui-solid/dist/index.mjs:11:23
    at async instantiateModule (file:///C:/Projects/Glazer/node_modules/.pnpm/vite@4.1.1_@types+node@18.11.18/node_modules/vite/dist/node/chunks/dep-3007b26d.js:52400:9
Was this page helpful?