You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set up a monorepo with Solid (tool-app) and Solid Start (page-app) apps. The Solid App builds fine, but the Solid Start App throws an error when I try to build it with the option to prerender the page on building or throws an error when I build it without prerendering when serving.
When I remove the following lines in the file app.config.ts I can build:
prerender: {
crawlLinks: true,
},
To set up the repository to make Solid Start work I set up a symlink from the page-app folder like this:
cd apps/page/app
ln -s ../../../node_modules/ node_modules
The following command throws an error when page should be prerendered:
nx build page-app
Building without prerendering works, but when trying to serve the built with node apps/page/app/.output/server/index.mjs the server throws the same error.
Setting the version of @vanilla-extract/vite-plugin to 4.0.10 throws [vanilla-extract] Failed to load url errors.
⚙ Preparing app for node-server...
✔ Generated public .output/public vinxi 10:06:29 AM
ℹ Initializing prerenderer vinxi 10:06:29 AM
ℹ Building Nitro Server (preset: nitro-prerender, compatibility date: ``) vinxi 10:06:29 AM
✔ Nitro Server built vinxi 10:06:30 AM
✔ You can preview this build using npx serve .output/public vinxi 10:06:30 AM
ℹ Prerendering 1 initial routes with crawler vinxi 10:06:30 AM
[nitro] [unhandledRejection] TypeError: Cannot read properties of undefined (reading 'file')
at Object.get (file:///home/playground/workspace/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected][email protected]_pkkifnsbod3b7nmoc7jpr5cmom/node_modules/vinxi/lib/manifest/prod-server-manifest.js:168:33)
at file:///home/playground/workspace/apps/page/app/.vinxi/prerender/chunks/nitro/nitro.mjs:1166:32
[nitro] [unhandledRejection] TypeError: Cannot read properties of undefined (reading 'file')
at Object.get (file:///home/playground/workspace/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected][email protected]_pkkifnsbod3b7nmoc7jpr5cmom/node_modules/vinxi/lib/manifest/prod-server-manifest.js:168:33)
at file:///home/playground/workspace/apps/page/app/.vinxi/prerender/chunks/nitro/nitro.mjs:1020:89
Validations
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Describe the bug
I set up a monorepo with Solid (tool-app) and Solid Start (page-app) apps. The Solid App builds fine, but the Solid Start App throws an error when I try to build it with the option to prerender the page on building or throws an error when I build it without prerendering when serving.
When I remove the following lines in the file
app.config.ts
I can build:To set up the repository to make Solid Start work I set up a symlink from the page-app folder like this:
The following commands work fine:
The following command throws an error when page should be prerendered:
Building without prerendering works, but when trying to serve the built with
node apps/page/app/.output/server/index.mjs
the server throws the same error.Setting the version of
@vanilla-extract/vite-plugin
to4.0.10
throws[vanilla-extract] Failed to load url
errors.I also created an issue on the
solid-start
page.Reproduction
https://github.com/floratmin/workspace-vanilla-css-vinxi-error
System Info
Used Package Manager
pnpm
Logs
Validations
The text was updated successfully, but these errors were encountered: