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

React-Yarn Sample has an error display #854

Open
hoangelos opened this issue Oct 15, 2024 · 0 comments
Open

React-Yarn Sample has an error display #854

hoangelos opened this issue Oct 15, 2024 · 0 comments

Comments

@hoangelos
Copy link

When using the React/NodeJS example that uses yarn, I get an error when I go to the page for the first time. It's because it's trying to write to the cache folder.

$ pack version
0.35.1+git-3a22a7f.build-6099

Screenshot 2024-10-15 at 4 32 49 PM

Expected Behavior

Sample React site displayed without any error.

Current Behavior

Message displays on screen:

ERROR in EACCES: permission denied, open '/workspace/node_modules/.cache/.eslintcache'

Once the error is closed, you can continue.

Possible Solution

Not sure

Steps to Reproduce

  1. Git Clone Sample repo
  2. cd samples
  3. pack build --env "BP_WEB_SERVER=nginx" --env "BP_WEB_SERVER_ENABLE_PUSH_STATE=true" --env "BP_NODE_RUN_SCRIPTS=lint,build" docker.io/library/react-yarn --path nodejs/react-yarn --buildpack paketo-buildpacks/web-servers --buildpack paketo-buildpacks/nodejs --builder paketobuildpacks/builder-jammy-base
  4. podman run -it -e "PORT=5000" -P 5000:5000 docker.io/library/react-yarn:latest
  5. Open Broweer go to "http://localhost:5000"

Motivations

Getting the examples to work with no errors.

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

1 participant