I work on a project that uses lernajs to structure its components inside a packages folder. One "package" requires one or more sibling "package".
rootFolder
packages
package-1
package-2
If package-1 requires package-2, Lerna creates a symbolic link to package-2 inside the package-1 node_modules folder.
By running tests for package-1 I got this error:
Uncaught Error: Could not find module '../../package-2/src/Package2' from '/**pathToPackage1**/src/Package1.js' at node_modules/karma-commonjs/client/commonjs_bridge.js:85
I work on a project that uses
lernajs
to structure its components inside apackages
folder. One "package" requires one or more sibling "package".If package-1 requires package-2, Lerna creates a symbolic link to package-2 inside the package-1 node_modules folder.
By running tests for package-1 I got this error:
Uncaught Error: Could not find module '../../package-2/src/Package2' from '/**pathToPackage1**/src/Package1.js' at node_modules/karma-commonjs/client/commonjs_bridge.js:85
I'm not sure, but It might be related to this issue https://github.com/karma-runner/karma-commonjs/issues/34