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
Unable to use transform-react-inline-elements + transform-es2015-modules-commonjs with JSXMemberExpression (T6662) #3728
Comments
problem is in Modal.Header it is possible to temporarily fix this with const {Header: ModalHeader} = Modal; and then use |
Yes, but with different syntax. To fix this issue we did this:
|
This actually comes down to an issue with
with
|
Ran into this issue, it's happening because the es2015-modules transform is running before the react presets. This
|
I had the same issue. This was caused by importing
like this and then using it like this:
Importing it like this:
and using like this:
solved the problem. |
Still an issue.
Moreover, if try destructuring to get static Item from Menu component:
this error occurs: |
I don't think having to rewrite your imports is a sufficient solution, since external dependencies would also have to be rewritten, and since the standard way some components are expected to be used is |
Bug information
Options
Input code
Description
Use the command below to transpile the code
NODE_ENV=production babel xxx.js
will got error:
The text was updated successfully, but these errors were encountered: