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

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

Open
2 tasks done
dhruvkb opened this issue Sep 18, 2023 · 3 comments
Open
2 tasks done

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

dhruvkb opened this issue Sep 18, 2023 · 3 comments

Comments

@dhruvkb
Copy link
Contributor

dhruvkb commented Sep 18, 2023

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
Copy link
Contributor Author

dhruvkb commented Sep 18, 2023

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

  • 'Anonymous' component missing template or render function
  • Non-function value encountered for default slot. Prefer function slots for better performance.

These do not appear with npm.

@TechAkayy
Copy link
Collaborator

TechAkayy commented Aug 2, 2024

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
Copy link
Contributor Author

dhruvkb commented Aug 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants