-
Notifications
You must be signed in to change notification settings - Fork 485
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
import' and 'export' may appear only with 'sourceType: module' #483
Comments
Did you fixed it? |
Nope, just tried again on |
Sorry, I'm really not seeing any way to reliably replicate or fix this issue: there are issues scattered around babelify, and many many closed issues in babelify, all of which point to configuration errors. Here's our configuration. Happy to fix this issue if you can provide a testcase, I've tried many variations and haven't been able to trigger it in any of them. |
I think know that maybe is caused by a dynamic import from a third party code |
Sorry, closing as 'needs testcase'. Happy to reopen & fix if provided a testcase, otherwise it isn't feasible for me to debug this without replicating it. |
@irvinebroque Could you look at the end of #950 and try either:
Let us know if it works! |
Similar to #112, but I'm on v4.0.0-beta9 and that issue was tracking work on v2 => v3.
I ran into this issue today trying to add documentation to an existing codebase that uses ES6 modules and Flow types:
Babel plugins in use:
There are a few spots where we use
require()
instead of import, wondering if mixing and matching this with ES6 modules is an issue for documentation? Nothing stands out otherwise about the configuration of this project or its dependencies:The text was updated successfully, but these errors were encountered: