question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

7.9.0 Regression with React preset and pragma defaults

See original GitHub issue

Bug 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:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
nicolo-ribaudocommented, Mar 20, 2020

@Ailrun I’ll release when Travis finishes on master.

1reaction
Ailruncommented, Mar 20, 2020

Thank you all for hard work! I appreciate it a lot 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found