-
Notifications
You must be signed in to change notification settings - Fork 108
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 while initializing in Node 19 #438
Comments
I appreciate that node 19 is just barely a day old and it's expected that things might not be compatible at first. 😄 |
Hey, this looks like a pretty simple fix - would you be interested in contributing a PR? |
I was unable to reproduce it here in Would love for it to be a fix here though, so I can revert that PR and bump the dep 🙂 |
@jonathanschoeller I'm unable to reproduce the issue with your snippet, could you verify? |
@SimenB I can't seem to reproduce the issue now either. I must have had some other environment details I didn't record. Happy to close this off. Thanks for having a look. |
FYI the issue with The Jest fix for Node 19 (jestjs/jest#13467) works fine there. |
@akwodkiewicz since we are not able to reproduce this outside of Jest, would you mind telling us exactly what you did? |
It would be very hard, because what made me look into this issue is one of my projects had Node upgraded from All of those errors looked like this
Ultimately my issue was related to unexpected package hoisting by Yarn and having outdated I just posted my previous comment to let people know that it's not only Node 19 upwards that needs to use Jest >=29, but 18.19.x as well. EDIT: There were also these:
but I guess it's just a side-effect of having the first error, so I dismissed it. Footnotes
|
9.1.2
node:19.0-alpine@sha256:48e43334c84762aa05c18dac37ec5ca396e9d55c5cb053f15cd4edbfe89a0914
(not reproducible innode:18.11-alpine
)@jest/fake-timers
What did you expect to happen?
The code below to execute without throwing an exception.
What actually happens
An exception is thrown:
How to reproduce
Run the following:
The text was updated successfully, but these errors were encountered: