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

Electron cannot find libraries #132

Open
pupeno opened this issue Mar 23, 2017 · 0 comments
Open

Electron cannot find libraries #132

pupeno opened this issue Mar 23, 2017 · 0 comments

Comments

@pupeno
Copy link

pupeno commented Mar 23, 2017

When I run my tests in electron mode I get this error:

[doo] Started karma run
?[33m23 03 2017 07:35:35.052:WARN [web-server]: ?[39m404: /target/test/cljs_deps.js
Electron 1.6.4 (Windows 10 0.0.0) ERROR
  Uncaught Error: Cannot find module 'bcryptjs'
  at module.js:470

bcryptjs is a library I'm installing with npm. I created pakcage.json both in the root of my project, where the tests are defined and where the tests are compiled to with the corresponding node_modules and it will just not find the libraries.

According to karma-electron-launcher, "If you're using locally-installed Node modules via require in your code in the node_modules directory, you should be able to just require them, and they should be found by the testing environment.".

Maybe this is related to issue #131?

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