Error in codePen: Unexpected token '<'

Hello,

Someone can help me with this error in codePen:
https://codepen.io/ALL9000/pen/rNJqjzQ?editors=0010

set the JavaScript preprocessor to Babel

Thanks,
this are the dependencies I have in my VScode :
“dependencies”: {
@testing-library/jest-dom”: “^5.16.4”,
@testing-library/react”: “^13.0.1”,
@testing-library/user-event”: “^13.5.0”,
“react”: “^18.0.0”,
“react-dom”: “^18.0.0”,
“react-scripts”: “5.0.1”,
“web-vitals”: “^2.1.4”
},

What’s wrong in codePen ?

That’s wrork. I just deleted the import CSS file.
Thanks again :slight_smile:

I really just meant this
image

If you don’t have Babel as JS preprocessor, you can’t write JSX

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.