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

use jsx error #153

Closed
aa875982361 opened this issue May 27, 2020 · 0 comments
Closed

use jsx error #153

aa875982361 opened this issue May 27, 2020 · 0 comments

Comments

@aa875982361
Copy link

aa875982361 commented May 27, 2020

Describe the bug

i get error when i use jsx

...
return (<div></div>)
...

Screenshots

code:
image
error:
image

To Reproduce

Expected behavior

Compile normally without error

environment information

  • Version [e.g. 22]
  • OS: [e.g. window]
  • Browser [e.g. chrome,]

My solution

image
add babel preset(@vue/babel-preset-jsx) in .nuxt.config.js

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

2 participants