[Bug]: compile crash (regression?) TypeError: pass.get(...) is not a function; plugin-transform-react-jsx 7.9, helper-builder-react-jsx 7.18 #14884
Labels
area: react
i: regression
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
💻
How are you using Babel?
Other (Next.js, Gatsby, vue-cli, ...)
Input code
Configuration file name
No response
Configuration
No response
Current and expected behavior
works with:
doesn't work with:
Environment
plugin-transform-react-jsx 7.9
helper-builder-react-jsx 7.18
Possible solution
edit line 53 of node_modules/@babel/helper-builder-react-jsx/lib/index.js +53 to revert b1e73d6#diff-3670f8045f2c739225a4da543e477ae1fca436a1ab52d5fdbee5771bf5f51b2cR68
Additional context
it seems that the variable that was refactored in b1e73d6 (file -> state.file) in helper-builder-react-jsx/lib/index.js file was just wrongly named, because it is passed to https://github.com/babel/babel/blob/v7.9.0/packages/babel-plugin-transform-react-jsx/src/transform-classic.js#L43 which uses the get() method from state ?
The text was updated successfully, but these errors were encountered: