I have two apps (public-app and admin-app) that share some React components. Those shared components are situated in a common
folder, at the root of the repository. So let's say I have:
my-app
|__admin-app
|__client
|__imports
|__Component.js
|__public-app
|__common
|__SharedComponent.js
In Component.js
, I try to import SharedComponent.js
by doing:
import SharedComponent from '../../../common/SharedComponent'
...But it's not working, it cannot find the module.
This should be possible as it is one of the recommended approaches from the official documentation (https://guide.meteor.com/structure.html#sharing-code), so any help would be much appreciated!