7.9.0 Regression with React preset and pragma defaults
See original GitHub issueBug Report
Via https://github.com/zeit/next.js/issues/11230 and on Slack with the error (error coming from https://github.com/babel/babel/pull/11126)
Input Code
Error: transform-react-jsx: pragma has been set but pragmaFrag has not been set
import React from 'react';
const D = <></>;
{
"presets": [["@babel/preset-react", {
"pragma": "__jsx"
}]]
}
We removed the defaults in the preset when refactoring in https://github.com/babel/babel/pull/11154 and https://github.com/babel/babel/pull/11126
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Presets - react - 《Babel 7.9.0 Document》 - 书栈网 · BookStack
babel/preset-reactInstallationUsageWith a configuration file ... createElement (only in classic runtime); "pragmaFrag": "DomFrag", // default is React.
Read more >eslint-plugin-react | Yarn - Package Manager
List of supported rules ; default-props-match-prop-types, Enforce all defaultProps have a corresponding non-required PropType ; destructuring-assignment, Enforce ...
Read more >@babel/helper-builder-react-jsx-experimental: Versions | Openbase
Full version history for @babel/helper-builder-react-jsx-experimental including change logs.
Read more >@babel/helper-builder-react-jsx - NPM Package Versions - Socket
Helper function to build react jsx. Version: 7.16.7 was published by nicolo-ribaudo. Start using Socket to analyze @babel/helper-builder-react-jsx and its 2 ...
Read more >firebase query firestore collection not working react native
Appearance. Light. Dark. System · Switch to Private · FAQ · Safe Search: Moderate. Off. Moderate. Strict · Open links in a new...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Ailrun I’ll release when Travis finishes on master.
Thank you all for hard work! I appreciate it a lot 😃