Skip to content
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

Uncaught TypeError when using core-js-pure with babel-runtime #705

Closed
deemoding opened this issue Nov 26, 2019 · 4 comments
Closed

Uncaught TypeError when using core-js-pure with babel-runtime #705

deemoding opened this issue Nov 26, 2019 · 4 comments

Comments

@deemoding
Copy link

step to reproduction:

git clone https://github.com/deemoding/React-boilerplate
cd React-boilerplate
git checkout core-js-pure
npm i
npm start

open http://localhost:65534

what happens:

Uncaught TypeError: Cannot convert undefined or null to object
    at hasOwnProperty (<anonymous>)
    at module.exports (has.js:4)
    at Object.module.exports [as f] (well-known-symbol.js:14)
    at module.exports (define-well-known-symbol.js:9)
    at eval (es.symbol.iterator.js:5)
    at Object../node_modules/core-js-pure/modules/es.symbol.iterator.js (main.bundle.js:6415)
    at __webpack_require__ (main.bundle.js:727)
    at fn (main.bundle.js:101)
    at eval (iterator.js:1)
    at Object../node_modules/core-js-pure/es/symbol/iterator.js (main.bundle.js:3797)
@zloirock
Copy link
Owner

It looks like #689, but your example can be reproduced even in modern engines. Now I haven't time to debug it, so I'll play with it a little later.

@zloirock
Copy link
Owner

zloirock commented Jan 10, 2020

I will not have a chance to explore it shortly, so marked as help wanted.

@DamienCompere
Copy link

I have the same issue, did you fix it ?

@deemoding
Copy link
Author

I have the same issue, did you fix it ?

I update to webpack5, and update all my dependencies to latest. Then It works. You can refer to this

By the way, you can use babel-runtime. I have tested and it works.

@zloirock zloirock closed this as completed Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants