bensu/doo

Electron cannot find libraries

Opened this issue · 0 comments

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?