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
-
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:
and then in my tsconfig.json I have set
For jest.config.js file:
I've tried everything. But I can't understand why random classes on my project are getting as
undefined
on 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