-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
"No default export found in module" when mixing ES5 and ES6 #558
Comments
This is a weird case (albeit, not an uncommon one) that is only really reachable due to transpiler pipelines compiling down to CJS, so tools like Babel allow you to You can set In v2 (coming soon... probably), if |
Alright, I didn't know you can ignore the imported files explicitly. This is a good enough workaround for now, thanks. |
@benmosher in the meantime, we decided to share more code between our api and client in our project. This means that a lot more code exports the old way, so it would be great if we don't have to ignore these imports.. Can't we get it so that the webpack-resolver would first try to load the module the old way, and if that fails use the webpack-pipeline to load it the way it does now? |
v2 should be coming soon! 😅 going to merge it to master as soon as 1.16 ships |
Still an issue for me, is this being worked on? |
Ignoring files like this is still the right answer IMO |
When importing a module that exports an object the old way:
This results in:
When the module you're trying to import is updated to the new syntax, it seems to be valid:
Unfortunately this is not possible in my case. I can disable the rule for this file as a workaround, but this should be possible right?
The text was updated successfully, but these errors were encountered: