securingsincity / react-ace

React Ace Component
http://securingsincity.github.io/react-ace/
MIT License
4.02k stars 603 forks source link

expected expression, got '<' #1842

Open Crispae opened 9 months ago

Crispae commented 9 months ago

Problem

expected expression, got '<'

Encounter this error with very basic implementation of ace. I installed ace using npm i react-ace
I tried the solution given in issue #357, but still no luck.

once, I start the development server with npm start, and open it on moziila it gives me this error. The weired thing is, if save the jsx file again while the development server is running, the error disappear. If i reload, the web page, error appear again.

In Edge and chrome, error blink for while and then disappear.

I don't understand this error is with ace or babel?

Sample code to reproduce your issue

import AceEditor from 'react-ace'

function Editor() {
  return (
    <div>
    <AceEditor></AceEditor>
    </div>

  )
}
export default Editor

References

Progress on: #

francopoffo commented 9 months ago

i have the same problem