Skip to content
New issue

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

Tips "react-scripts": "5.0.0" will course jsx error #38

Open
yinsang opened this issue Jan 19, 2022 · 3 comments
Open

Tips "react-scripts": "5.0.0" will course jsx error #38

yinsang opened this issue Jan 19, 2022 · 3 comments

Comments

@yinsang
Copy link

yinsang commented Jan 19, 2022

pragma and pragmaFrag cannot be set when runtime is automatic.


/** @jsx Didact.createElement */
const element = (
  <div id="foo">
    <a href="">bar</a>
    <b></b>
  </div>
)

"react-scripts": "3.0.0" was OK.

@tannguyencse19
Copy link

1/3/2022

Got it too.

@Ha0ran2001
Copy link

8/11/2022
Got it too.

@sachin2323
Copy link

/** @jsxRuntime classic /
/
* @jsx Didact.createElement */

You can use this to solve the above error, it worked for me, just change jsx runtime to classic mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants