Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug?]: Monorepo with Vanilla CSS: [nitro] [unhandledRejection] TypeError: Cannot read properties of undefined (reading 'file') #1671

Closed
2 tasks done
floratmin opened this issue Nov 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@floratmin
Copy link

floratmin commented Nov 3, 2024

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

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,
},

The following commands work fine:

nx serve tool-app
nx build tool-app
nx serve page-app

I also created an issue on the vanilla-extract page.

I am also not sure if this setup of Solid Start in a monorepo is the best way to do this. But the bug seems not to depend on this setup.

Expected behavior 🤔

I should be able to build a prerendered package.

Steps to reproduce 🕹

Steps:

  1. cd apps/page/app
  2. ln -s ../../../node_modules/ node_modules
  3. cd -
  4. nx build page-app
  5. node apps/page/app/.output/server/index.mjs (when not prerendered)

Context 🔦

No response

Your environment 🌎

System:
    OS: Linux 5.15 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
    CPU: (16) x64 AMD Ryzen 7 5700G with Radeon Graphics
    Memory: 14.66 GB / 30.73 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 22.8.0 - ~/.nvm/versions/node/v22.8.0/bin/node
    npm: 10.8.2 - ~/.nvm/versions/node/v22.8.0/bin/npm
    pnpm: 9.9.0 - ~/.local/share/pnpm/pnpm
  Browsers:
    Chrome: 130.0.6723.91
  npmPackages:
    @vanilla-extract/css: ^1.16.0 => 1.16.0 
    @vanilla-extract/recipes: ^0.5.5 => 0.5.5 
    @vanilla-extract/sprinkles: ^1.6.3 => 1.6.3 
    @vanilla-extract/vite-plugin: 4.0.17 => 4.0.17 
    rollup: 4.22.4 => 4.22.4 
    vite: 5.4.10 => 5.4.10
@floratmin
Copy link
Author

Not related to vanilla-css

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant