-
-
Notifications
You must be signed in to change notification settings - Fork 473
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
0.26.2 to 0.27.0 causes node 10 to fail #625
Comments
I had a similar problem and the error was with the Object.fromEntries() function. I just updated my node to be 12+ and it worked. |
Would be nice on the documentation to add the minimum requirements for msw to run on node (and browser while you are at it) |
@dagadbm thank you for telling me this. I'm guessing that they would like to support node 10 and it's just a matter of transpiling it. |
Thank you for reporting this. It looks like the build of @mswjs/cookies package is compiled to include
I suspect the culprit to be the https://github.com/mswjs/cookies/blob/f4edfc2a96077b7f7901177560586b84c2ba0188/tsconfig.json#L2-L10
We're developing the library against v12.18.0, which you can find in the .nvmrc file. I agree that's not the way to propagate the necessary Node.js version. We can set the "engines" property in package.json if that'd help. It'd be hard to demand a specific Node.js version since the library can be used for browser only. Then it matters not what Node.js version your project has as you're not using MSW Node API ( Would somebody be interested in making a pull request to @mswjs/cookies and reconfigure the build so it transpiles es2017 features? |
I had a quick look at the cookies package. Apparently it doesn't make use of
|
@chrisguttandin the source code of the cookies package gets compiled, but it looks like |
I got a setup checking both node 10, 12 and 14
The newest version keeps failing on node 10 but not the other node version.
I hope it's okay that I provide a link to the github action that fails - since it will have much more details than I can provide:
https://github.com/Norfeldt/react-kitchen-sink/pull/113/checks?check_run_id=2007437692
The text was updated successfully, but these errors were encountered: