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

[FR]: Provide an example for nuxt #2112

Open
EricWaddell opened this issue Feb 24, 2025 · 0 comments
Open

[FR]: Provide an example for nuxt #2112

EricWaddell opened this issue Feb 24, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@EricWaddell
Copy link

What is the current behavior?

There is no example for nuxt using aspect_rules_js. There is a very old example that I can't get to build from rules_nodejs here: https://github.com/albttx/bazel-nuxt additionally the example is only about nuxt generate where I am trying to get an SSR example working.

Describe the feature

I tried creating an example nuxt application like so:
https://github.com/EricWaddell/examples/tree/eric/nuxt/build-failing

Running //nuxt:nuxt (nuxt dev), //nuxt:prepare or //nuxt:generate all work fine with the above build, but //nuxt:build fails with

 ERROR  EACCES: permission denied, open '/private/var/tmp/_bazel_user/7d974ac54b5c73c72b275cd5cccbb7da/sandbox/darwin-sandbox/1716/execroot/_main/bazel-out/darwin_x86_64-fastbuild/bin/nuxt/.output/server/node_modules/@unhead/dom/package.json'

I think nuxt build is both copying node_modules to the .output directory and then accessing them resulting in a failure due to sandboxing.

@EricWaddell EricWaddell added the enhancement New feature or request label Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant