Class extends value undefined is not a constructor or null (only on ts-jest) #4281
Unanswered
amisteriousdeveloper
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a legacy project with Create React App. It is working fine.
It builds and run with no problem.
But ts-jest is failing on some files/imports and I can't understand why. It is not that the modules are not being found, but I'm seeing errors like this:
Since CRA doesn't allow I have a json with this first:
{ "compilerOptions": { "paths": { "@/*": ["./src/*"], "@public/*": ["./public/*"], "@tests/*": ["./__test__/*"] } } }and then in my tsconfig.json I have set
{ // other configs and... "extends": "./tsconfig.paths.json",For jest.config.js file:
I've tried everything. But I can't understand why random classes on my project are getting as
undefinedon forts-jest. There are some files and modules withBut I'm not sure if this can be the reason.
Beta Was this translation helpful? Give feedback.
All reactions