You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please tell us about your environment:
macOS 12.1
node.js 16.9.0
Current behavior: /** @jsx jsxCreateModel */ pragma is ignored and transpiled code has React.createElement(.... Error React is not defined is thrown.
Expected/desired behavior: /** @jsx jsxCreateModel */ pragma should result in transpiled code with my custom method jsxCreateModel(....
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem along with a gist/jsbin of your webpack configuration.
I tried downgrading various packages, and to get it working I had to revert to @babel/core 7.15.5 and babel-loader 8.2.2. Only upgrading core to 7.16.0 breaks it. Only upgrading the loader to 8.2.3 breaks it. Upgrading both of them breaks it.
The text was updated successfully, but these errors were encountered:
Hey @MartinSoderholm! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.
If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite.
I can't reproduce this issue. Are you sure the pragma comment is /** @jsx jsxCreateModel */? In #14012 we limits the @jsx pragma comment, i.e. /** some thing @jsx jsxCreateModel */ is not allowed. But /** @jsx jsxCreateModel */ is still supported.
I'm submitting a bug report
Webpack Version:
5.66.0
Babel Core Version:
7.16.10
Babel Loader Version:
8.2.3
Please tell us about your environment:
macOS 12.1
node.js 16.9.0
Current behavior:
/** @jsx jsxCreateModel */
pragma is ignored and transpiled code hasReact.createElement(...
. ErrorReact is not defined
is thrown.Expected/desired behavior:
/** @jsx jsxCreateModel */
pragma should result in transpiled code with my custom methodjsxCreateModel(...
.If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem along with a gist/jsbin of your webpack configuration.
I tried downgrading various packages, and to get it working I had to revert to
@babel/core 7.15.5
andbabel-loader 8.2.2
. Only upgrading core to7.16.0
breaks it. Only upgrading the loader to8.2.3
breaks it. Upgrading both of them breaks it.The text was updated successfully, but these errors were encountered: