Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Karma-commonjs does not work in LernaJS structure #65

Open
fernandosouza opened this issue May 26, 2017 · 0 comments
Open

Karma-commonjs does not work in LernaJS structure #65

fernandosouza opened this issue May 26, 2017 · 0 comments

Comments

@fernandosouza
Copy link

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'm not sure, but It might be related to this issue #34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant