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

module.exports is not safe to read #406

Open
zhaoyao91 opened this issue Jan 28, 2021 · 1 comment
Open

module.exports is not safe to read #406

zhaoyao91 opened this issue Jan 28, 2021 · 1 comment

Comments

@zhaoyao91
Copy link

see https://github.com/facebook/regenerator/blob/master/packages/regenerator-runtime/runtime.js#L732

it assume module.exports is an object. howerver, with current webpack 5, the module is an object while module.exports is only an setter, not an object at all, which lead to the parameter to be empty.

@PatrickHollweck
Copy link

Yup, Got the same issue. Using webpack^5 and im getting Cannot set property 'wrap' of undefined because module.exports is set only

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants