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
Unable to use 6.0.0-beta.6 with core-js #12358
Comments
What we can do
I don't think |
I also ran into this due to Apollo GraphQL utilizing core-js to shim Array.flatMap and a couple of other items. From what I can tell from the Lodash is they attempted to resolve this with the core-js team and reached a stalemate: https://github.com/lodash/lodash/blob/4.17.15-npm/isNative.js#L8 One option is to require _baseIsNative directly which bypasses the core-js detection. What do you think about that option? Here's an example:
|
That should work for our use-case |
🎉 This issue has been resolved in version 6.3.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Issue Description
I'm using Webpack with core-js polyfill in my Node.js project relying on Sequelize library. I decided to make an earlier migration from Sequelize 5 to Sequelize 6 but was unable to make it working to due this error:
What are you doing?
Upgrading Sequelize 5 => 6. I narrowed down the problem and created a repo to reproduce it. The issue is caused by
_.isNative()
function that is incompatible withcore-js
and is used bymergeDefaults
utility function of Sequelize.What do you expect to happen?
The code working in Sequelize 5 to work in Sequelize 6.
What is actually happening?
An error
is thrown.
Environment
How does this problem relate to dialects?
Would you be willing to resolve this issue by submitting a Pull Request?
The text was updated successfully, but these errors were encountered: