-
Notifications
You must be signed in to change notification settings - Fork 4
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
Relative imports are not supported #2
Comments
Yup, thank you! If I understand correctly, you fixed the issue by replacing a relative import with an absolute one. However, I was wondering if you won't be able to use relative imports at all, and if that's even a problem. Since the immediate problem is solved, feel free to close this issue after your PR is merged |
@ivan-c For importing node_modules components/libs, I am able to use both absolute path and relative path in my own local instance (which is not docker built). But I can see the flaw in using the relative path if the location of the node_modules directory has changed as in this situation. |
In my attempt to support development with docker, I've been trying to store node dependencies outside the git checkout.
When I tried installing
node_modules
into the parent directory of the git checkout (see notes), I got the below error.From this SO question, it sounds like a restriction from create-react-app.
Relative import error:
The text was updated successfully, but these errors were encountered: