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

expected expression, got '<' #1842

Open
Crispae opened this issue Oct 29, 2023 · 1 comment
Open

expected expression, got '<' #1842

Crispae opened this issue Oct 29, 2023 · 1 comment

Comments

@Crispae
Copy link

Crispae commented Oct 29, 2023

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
Copy link

i have the same problem

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