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
transform-react-constant-elements causes "We don't know what to do with this node type." #5369
Comments
Hey @jbrantly! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
Thanks @jbrantly, and thanks for the test case. We have a few issues we've seen in 6.23 - this is a tricky beast and includes some updates to |
A minimal test case: class A {
render() {
return <B />
}
}
export class B {} The issue is that we're calling |
Input Code
Babel Configuration (.babelrc, package.json, cli command)
Expected Behavior
Should not error.
Current Behavior
Errors with "We don't know what to do with this node type. We were previously a Statement but we can't fit in here?"
Context
This seems to be a regression in 6.23.0 as the same code is transpiled into a working state with 6.22.0. My guess is that this was introduced in #5153.
Of note is that the code does transpile if the
export
is removed from the second class.Your Environment
cc @STRML
The text was updated successfully, but these errors were encountered: