Open oke-py opened 3 years ago
@oke-py Did you end up solving this issue?
@tomprats No. Could you help me?
I made a ton of changes and can't remember exactly which one did it but here's a summary of what I did:
moduleDirectories: [
I changed "<rootDir>/node_modules",
to "node_modules",
"babel-jest": "^27.5.1",
and "jest": "^27.5.1",
nodejs 14.3.0
to nodejs 14.18.0
Sorry I can't be more specific, but I think it was one of those
Thanks. I'll update nodejs to 16.x and then look into this issue.
I know this is two years later, but I'm also encountering this error. Did either of you ever discover a concrete workaround @oke-py / @tomprats?
My best guess is that updating node fixed it, but I'm not sure
@theycallmeswift Perhaps this will help you? https://github.com/chalk/strip-ansi/releases/tag/v6.0.0
I'd like to update strip-ansi to 7.0.0. strip-ansi@7.0.0 is pure ESM, and so the way using the module has changed.
reproduce
Edit the package.json as below.
Run
npm i
andnpm run test
.