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

WEBPACK Failed to compile with 1 error TypeError: mocha.useColors is not a function #329

Open
Neha8482 opened this issue Jul 9, 2020 · 2 comments

Comments

@Neha8482
Copy link

Neha8482 commented Jul 9, 2020

Can anyone please help me with this

WEBPACK Failed to compile with 1 error(s)

TypeError: mocha.useColors is not a function
at configureMocha (C:\Users\dell\AppData\Roaming\npm\node_modules\mocha-webpack\lib\runner\configureMocha.js:34:9)
at TestRunner.prepareMocha (C:\Users\dell\AppData\Roaming\npm\node_modules\mocha-webpack\lib\runner\TestRunner.js:139:48)
at C:\Users\dell\AppData\Roaming\npm\node_modules\mocha-webpack\lib\runner\TestRunner.js:193:36
at C:\Users\dell\AppData\Roaming\npm\node_modules\mocha-webpack\lib\webpack\compiler\registerReadyCallback.js:26:7
at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Users\dell\AppData\Roaming\npm\node_modules\webpack\node_modules\tapable\lib\HookCodeFactory.js:33:10), :16:1)
at AsyncSeriesHook.lazyCompileHook (C:\Users\dell\AppData\Roaming\npm\node_modules\webpack\node_modules\tapable\lib\Hook.js:154:20)
at C:\Users\dell\AppData\Roaming\npm\node_modules\webpack\lib\Compiler.js:304:22
at Compiler.emitRecords (C:\Users\dell\AppData\Roaming\npm\node_modules\webpack\lib\Compiler.js:499:39)
at C:\Users\dell\AppData\Roaming\npm\node_modules\webpack\lib\Compiler.js:298:10
at C:\Users\dell\AppData\Roaming\npm\node_modules\webpack\lib\Compiler.js:485:14
at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Users\dell\AppData\Roaming\npm\node_modules\webpack\node_modules\tapable\lib\HookCodeFactory.js:33:10), :18:1)
at AsyncSeriesHook.lazyCompileHook (C:\Users\dell\AppData\Roaming\npm\node_modules\webpack\node_modules\tapable\lib\Hook.js:154:20)
at C:\Users\dell\AppData\Roaming\npm\node_modules\webpack\lib\Compiler.js:482:27
at C:\Users\dell\AppData\Roaming\npm\node_modules\webpack\node_modules\neo-async\async.js:2818:7
at done (C:\Users\dell\AppData\Roaming\npm\node_modules\webpack\node_modules\neo-async\async.js:3522:9)
at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\Users\dell\AppData\Roaming\npm\node_modules\webpack\node_modules\tapable\lib\HookCodeFactory.js:33:10), :4:1)
at AsyncSeriesHook.lazyCompileHook (C:\Users\dell\AppData\Roaming\npm\node_modules\webpack\node_modules\tapable\lib\Hook.js:154:20)
at C:\Users\dell\AppData\Roaming\npm\node_modules\webpack\lib\Compiler.js:464:33
at MemoryFileSystem.writeFile (C:\Users\dell\AppData\Roaming\npm\node_modules\mocha-webpack\node_modules\memory-fs\lib\MemoryFileSystem.js:328:9)

@abnovak
Copy link

abnovak commented Aug 3, 2020

I believe this has to do with Mocha deprecating some functions. Is this project dead? Or do we think there could be updates?

@larixer
Copy link

larixer commented Sep 17, 2020

@Neha8482 @abnovak
mocha-webpack has no activity since May, 2018. I maintain a fork, named mochapack, since March 2019, here:
https://github.com/sysgears/mochapack

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

3 participants