Open ivan-c opened 2 years ago
@ivan-c I saw that the error was related to importing the cql worker lib in node_modules folder, Does this resolve the error?
@ivan-c I saw that the error was related to importing the cql worker lib in node_modules folder, Does this resolve the error?
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
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.
@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: