question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error with mocha on Node.js 11.7.0

See original GitHub issue

Link to bug demonstration repository.

Expected Behavior

No error, consistent with node v10.

Observed Behavior

koa-subdomain

repo: https://github.com/keenwon/koa-subdomain ci: https://travis-ci.org/keenwon/koa-subdomain

node v10:

image

node v11.7.0:

image

ELint

repo: https://github.com/keenwon/elint ci: https://travis-ci.org/keenwon/elint

node v10:

image

node v11.7.0:

image

Forensic Information

Operating System: macOS and Linux Environment Information: https://gist.github.com/keenwon/846364069714c310e45e630eeba0d24d

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:12
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
bcoecommented, Jan 22, 2019
2reactions
boneskullcommented, Jan 22, 2019

Mocha got bit by this too. pinning to v11.6.0 seems to fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue running mocha tests in nodejs - Stack Overflow
I have tried installing mocha globally using the command: npm i -g mocha. Even after which I'm getting the above same error.
Read more >
Building and Testing — highlight.js 11.7.0 documentation
Testing is done using Mocha and the files are found in the test/ directory. You can use the node build to run the...
Read more >
Node JS (Install) 19.3.0 - Chocolatey Software
This package runs the official Node JS installer, resulting in Node.exe and NPM being installed under Program Files, and added to the SYSTEM...
Read more >
Testing Node.js with Mocha and Chai - LogRocket Blog
Commonly used with Chai, Mocha is an open source JavaScript testing framework that runs on Node.js and in the browser.
Read more >
Getting Started with Node.js and Mocha - Semaphore Tutorial
Mocha is a simple, extensible and fast testing library for Node.js. ... npm test module.js:340 throw err; ^ Error: Cannot find module '....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found