-
Notifications
You must be signed in to change notification settings - Fork 208
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
[just-omit] webpack import error #539
Comments
I have same problem, and I solved by |
This seems to solve that but in TS envs the issue then becomes the types aren't imported when trying to import directly from Any thoughts @angus-c? |
I've dug a little deeper here and it seems that downgrading the It must be something to do with either improper exports, Jest, or somewhere in-between (maybe runtime is grabbing the func from I can say I'm seeing this with |
When trying to import packages I see an
Uncaught TypeError: just_omit__WEBPACK_IMPORTED_MODULE_0___default(...) is not a function
error when doing `import omit from 'just-omit'Using:
"just-omit": "^2.2.0"
"webpack": "4.41.5"
"react-scripts": "3.4.0"
Not sure what's causing the import not to work on this version of webpack, I believe it doesn't support ES6 but as far as I can tell this package doesn't need ES6 it should be fine on ES5
The text was updated successfully, but these errors were encountered: