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:
Attaching to sof-client-dev_frontend_1
frontend_1 |
frontend_1 | > hello-world-react@0.1.0 start /opt/app
frontend_1 | > rescripts start
frontend_1 |
frontend_1 | ℹ 「wds」: Project is running at http://192.168.32.2/
frontend_1 | ℹ 「wds」: webpack output is served from
frontend_1 | ℹ 「wds」: Content not from webpack is served from /opt/app/public
frontend_1 | ℹ 「wds」: 404s will fallback to /
frontend_1 | Starting the development server...
frontend_1 |
frontend_1 | Failed to compile.
frontend_1 |
frontend_1 | ./src/components/Summary.js
frontend_1 | Module not found: You attempted to import ../../node_modules/cql-worker/src/cql.worker.js which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
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_modulesinto 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: