nxext / nx-extensions

Nx Extension for StencilJs, SvelteJS, SolidJS, Ionic and VueJs
MIT License
451 stars 100 forks source link

Solid: nx integrated monorepo vite config #1061

Open jeffruby opened 6 months ago

jeffruby commented 6 months ago

Describe the bug Missing config in vite.config.ts causes start page to not load on new solid app. I was able to fix this by adding fs: { allow: ['../..'], }, inside the server section of vite.config.ts.

To Reproduce

  1. Setup a solid app in a nx integrated monorepo, using pnpm.
  2. Serve the app and attempt to view the start page.

Expected behavior You can view the start page.

Additional context Blank page in browser with this console error: The request url "/monoreporoot/apps/app/src/index.tsx" is outside of Vite serving allow list.