Skip to content
This repository has been archived by the owner on Feb 1, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants