SolidJSS
SolidJSโ€ข3y agoโ€ข
22 replies
Bersaelor

`vinxi build` fails with RollupError during unecessary "Preparing app for node-server... "

Hey there,
so when I run
npm run build
which really runs vinxi build as of solid 0.4.* it works locally.

But when run as part of a github action, it fails with
[success] [vinxi] Generated public .output/public
[info] [vinxi] Initializing prerenderer
Error:  [nitro] RollupError: Could not resolve "./ThemeContext" from "node_modules/@suid/system/useTheme.js"


undefined
Error:  Could not resolve "./ThemeContext" from "node_modules/@suid/system/useTheme.js"
  at error (node_modules/rollup/dist/es/shared/parseAst.js:337:30)
  at ModuleLoader.handleInvalidResolvedId (node_modules/rollup/dist/es/shared/node-entry.js:18000:24)
  at node_modules/rollup/dist/es/shared/node-entry.js:17960:26
  at async Promise.all (index 0) 

So, this seems to happend AFTER the .output/public folder is created, the next step is Initializing prerenderer.
But I'm not using any node-server, how can I tell it that it doesn't have to do that during CI steps?
Was this page helpful?