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

getOwnEnumPropSymbols.default error #71

Closed
DarkAiR opened this issue Dec 3, 2021 · 2 comments
Closed

getOwnEnumPropSymbols.default error #71

DarkAiR opened this issue Dec 3, 2021 · 2 comments

Comments

@DarkAiR
Copy link

DarkAiR commented Dec 3, 2021

In version 4.0.0 I get an error in the code:
...getOwnEnumPropSymbols.default(input),

index.js?feff:94 Uncaught (in promise) TypeError: get_own_enumerable_property_symbols__WEBPACK_IMPORTED_MODULE_2___default.a.default is not a function or its return value is not iterable

Code below works
...getOwnEnumPropSymbols(input),

@sindresorhus
Copy link
Member

This is a problem with Webpack or your Webpack config. I suggest opening an issue on Webpack instead.

@changhuali
Copy link

This is a problem with Webpack or your Webpack config. I suggest opening an issue on Webpack instead.

The value of the default export is exports.default if the CommonJS file has an Object.defineProperty(exports, "__esModule", { value: true }), otherwise it's module.exports, __esModule is true in get-own-enumerable-property-symbols package , so ...getOwnEnumPropSymbols.default(input) here should be changed to ...getOwnEnumPropSymbols.default(input)

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

3 participants