solid-start icon indicating copy to clipboard operation
solid-start copied to clipboard

solid-start build output missing routes when run in monorepo structure

Open dallastjames opened this issue 3 years ago • 0 comments

I've been playing with (and absolutely loving) solid/solid start for the last week. One of the oddities that I've come across is that building the project in a monorepo structure seems to throw off the build outputs and cause the resulting build to be missing all of the routes.

In my example below, I've taken the solid-hackernews app and built it in a non-monorepo structure (left) and in a simple pnpm workspace (right). In the latter, the index.html and any other relevant "page" files are missing from the build output. This example is using the vercel adapter, but I also get the same behavior using the default node adapter.

image

In my testing, i'm using PNPM, which shouldn't be affected by the monorepo support information on the readme to my understanding.

A repo showing this behavior can be found here:

monorepo
not monorepo

Reproduction steps:

  • Clone repo
  • pnpm i
  • pnpm --filter hackernews build
  • OR pnpm build for non-monorepo
  • compare the contents of the built dist/public directory

dallastjames avatar Nov 07 '22 16:11 dallastjames