I have two react apps(A-app, B-app). I need to import one component from A-app to B-app. But when I tried to do this I have seen this error.
./src/App.js
Module not found: You attempted to import ../../src/components/Dashboard/container which falls outside of the project src/ directory. Relative imports outside of src/ are not supported. You can either move it inside src/, or add a symlink to it from project's node_modules/.
I tried to do symlink on this component in B-app node_modules. But it didn`t work.
Also I tried to create .env file in root project directory and put this NODE_PATH=src/
in file. But this solve doesn`t work too.
How can I fix this?
Sorry for my English.