-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
ERR_UNKNOWN_FILE_EXTENSION when importing certain packages in tests #4952
Comments
Also, I was running mocha with the debug flag set but didn't see anything helpful in there. So that might be a side issue. Here's the complete output:
|
use
mocha is using see youself in |
Well, with that I get a different error at least.
Seems like something is wrong with the transpilation of Typescript in the test code now. |
@patreeceeo I suggest studying this thread TypeStrong/ts-node#1007 which I suppose you haven't read, yet. Node's This issue is related to ts-node. I will close this issue unless there is some interesting activity. |
Prerequisites
faq
labelnode_modules/.bin/mocha --version
(Local) andmocha --version
(Global). We recommend that you not install Mocha globally.Description
Similar, but not the same as, #4900. Nothing in there helped with my situation.
Mocha works fine until I import something (anything, apparently) from this particular package (@xrengine/engine) in my tests. When I do, and only when I do, I get this error:
Steps to Reproduce
MCVE: https://github.com/patreeceeo/repro-mocha-issue
npm install
npm run test
Expected behavior: tests should run
Actual behavior: error
Reproduces how often: 100%
Versions
mocha --version
andnode_modules/.bin/mocha --version
: 10.1.0 (locally, no global install)node --version
: 16.3.0 / 18.12.1The text was updated successfully, but these errors were encountered: