-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Unable to resolve dependencies in NODE-PATH using DOCKER #4442
Comments
Hi, we're not experts in Docker or this setup -- why are you installing This seems better suited for Stack Overflow. Good luck! |
I'm having the exact same issue with the same symptoms. It seems like I can't imagine why the Docker environment would cause any problems. If I hack up the
This leads to the output:
The specific command I run doesn't seem to matter much between:
Other notes and observations:
My package versions:
|
Alright, I figured it out. The issue is that I'm not sure why it wants to filter out absolute paths. This is a pretty standard docker setup due to how volume mapping local development environments is so wonky. |
Is this a bug report?
YES
Description
Hi, I'm using docker to develop my solution.
In Docker I install the node-modules insite /opt folder and add this node_modules folder to NODE_PATH and PATH, if I go into the Docker container and run
node
then execute something likeThe output will be a success, this will happen in every location of the docker container, not just the /opt
To reproduce this issue I will show you step by step how I making my project.
My DockerFile is:
Now if I ejecute the docker build with
$ docker build --build-arg ENVIRNMOENT=production -t my_react_project .
Actual behavior
I will get this error message
Now, If you go into the docker image running
Now you will be into something like
Now you can execute node and test importing react, it will works
Environment
As you can see my platform is
NODE: 8.11
yarn: 1.5.1
Reproducible Demo
You can clone this repo https://github.com/camiloperezv/login-template-react and reproduce the bug there.
I found this issue related #2230
Regards
The text was updated successfully, but these errors were encountered: