We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Current behavior:
If you set the /** @jsx jsx */ as instructed in the docs, and then try to use a React Fragment, you get the following error:
/** @jsx jsx */
transform-react-jsx: pragma has been set but pragmaFrag has not been set
To reproduce:
npm create react-app pragma-issue
npm install @emotion/core
import {jsx} from '@emotion/core'
src/index.js
npm run build
You'll get the error.
Add /** @jsxFrag React.Fragment */ to the top of the file and the error goes away.
/** @jsxFrag React.Fragment */
Expected behavior:
This is a new error. Maybe it's something that babel can fix so we don't have to add /** @jsxFrag React.Fragment */ to every file...
Environment information:
react
emotion
The text was updated successfully, but these errors were encountered:
Just checked and babel's restoring the original behavior: https://twitter.com/existentialism/status/1242180403928195075
Sorry, something went wrong.
pragmaFrag
No branches or pull requests
Current behavior:
If you set the
/** @jsx jsx */
as instructed in the docs, and then try to use a React Fragment, you get the following error:To reproduce:
npm create react-app pragma-issue
npm install @emotion/core
/** @jsx jsx */
and thenimport {jsx} from '@emotion/core'
tosrc/index.js
npm run build
You'll get the error.
Add
/** @jsxFrag React.Fragment */
to the top of the file and the error goes away.Expected behavior:
This is a new error. Maybe it's something that babel can fix so we don't have to add
/** @jsxFrag React.Fragment */
to every file...Environment information:
react
version: latestemotion
version: latestThe text was updated successfully, but these errors were encountered: