-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
TypeError: Cannot read property 'prototype' of undefined when run in jest #1898
Comments
Thanks for reporting. How can I reproduce this issue? |
I was able to reproduce this, it involves configuring jest module resolution using the |
My fix was rather than including ExampleInstead of
Replace with
I'm not familiar enough with jest to root cause this, but hope this helps |
mathjs v8 was released a few days ago. This improved ES modules support which also gave trouble with Jest. Can anyone see if this issue still occurring in v8? |
Using my above repo but updating |
Thanks for checking 👍 We'll keep this issue open and have to do more digging then. Anyone able to help? |
It can be produced with the latest at least three versions. It works fine in my project when run the project by running
npm run start
. Why this is not working with jest.The text was updated successfully, but these errors were encountered: