[Play 2.5] test fails due to missing mocha.js

85 views
Skip to first unread message

Yann Moisan

unread,
Mar 31, 2016, 4:40:53 PM3/31/16
to play-framework
Since the migration to Play 2.5, test fails with an error on mocha.js

Here is the error

[error] Error: Cannot find module […]/mocha.js'
[error]     at Function.Module._resolveFilename (module.js:337:15)
[error]     at Function.Module._load (module.js:287:25)
[error]     at Function.Module.runMain (module.js:457:10)
[error]     at startup (node.js:136:18)
[error]     at node.js:972:3
[info]

Any help ?

Jules Ivanic

unread,
Apr 18, 2016, 10:31:06 AM4/18/16
to play-framework
Same error here :/ Any solution ?

Jules Ivanic

unread,
Apr 18, 2016, 10:53:29 AM4/18/16
to play-framework
Seems that I find a solution.
Just remove mocha from project/plugins.sbt

I don't use it so it's not a problem for me.


Le jeudi 31 mars 2016 22:40:53 UTC+2, Yann Moisan a écrit :

Morris Hopkins

unread,
Jun 21, 2017, 5:14:41 PM6/21/17
to Play Framework
I have the same issue. Did you ever find a solution?

Jules Ivanic

unread,
Jun 22, 2017, 3:53:49 AM6/22/17
to Play Framework
Just remove mocha from plugins. ;)
Reply all
Reply to author
Forward
0 new messages