ElMassimo / iles

๐Ÿ The joyful site generator
https://iles.pages.dev
MIT License
1.08k stars 32 forks source link

Rendered pages are blank when building inside monorepo with `pnpm` #263

Open dhruvkb opened 1 year ago

dhruvkb commented 1 year ago

Description ๐Ÿ“–

When running in a monorepo with the รฎles app in a subpackage, the build succeeds but the output HTML pages have nothing inside the <div id="app"></div>.

This happened specifically with pnpm. I switched back to npm and everything works now. I suspect it has something to do with pnpm's linking based approach but I don't know the internals well enough to sus out the cause. I am also confused because the build succeeds with positive message and exit code 0, and all the pages are there, but the contents are blank.

Reproduction ๐Ÿž

Please provide a link to a repo that can reproduce the problem you ran into.

https://github.com/dhruvkb/portfolio/tree/f3e94bb92bb464f01dbc7b7fd5004bcec9513aa9

Dependencies Info _Run `npx iles info` and `pnpm list` (or `npm list`) and provide the output:_ ``` iles v0.9.2 vite v4.4.9 ```
dhruvkb commented 1 year ago

Also in the above case (where pages are blank) there are warnings from Vue about

These do not appear with npm.

TechAkayy commented 2 months ago

I experienced this when pnpm linking iles (local clone) in my sample projects. But, when I copied my sample project under the playground folder by adding it to the workspace, the build worked fine.

Did you solve it, or still experiencing this @dhruvkb ?

dhruvkb commented 2 months ago

I was not able to solve this, but eventually I switched to a different framework, so I don't know if this is still reproducible or not.