lundi 29 août 2016

Karma: Cannot find module in relative path

I have a hard time with Karma not being to load a specific file. I am a beginner regarding Karma, I however spent the entire day diving into the documentation and looking for similar issues without success.

When starting the karma process, it will fail when loading a config file. Here is the error:

Chrome 52.0.2743 (Linux 0.0.0) ERROR
Uncaught Error: Cannot find module './development'
at /tmp/node_modules/browser-pack/_prelude.js:1:0 <- /tmp/7b47eeb55cec3f8cc510b5cd637c570a.browserify:1

I do not suspect the file to be the issue itself. My guess would be that the issue is around the 'require' action. This file is probably the first one to be 'required' during the execution.

In order to give you guys a way to reproduce it, i built a small node application: http://ift.tt/2c2Kdvp

Start with:

 npm run test

Versions:

node-v: v6.2.0
npm -v: 3.8.9

Thanks a lot in advance for any help.

Aucun commentaire:

Enregistrer un commentaire