-
-
Notifications
You must be signed in to change notification settings - Fork 603
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
Integration with react-boilerplate #360
Comments
@henviso you need to set a mode and import those themes and modes separately as shown in the basic usage in the readme https://github.com/securingsincity/react-ace#basic-usage . |
It's happening to me as well, and I have those imports declared. This is my code: import AceEditor from 'react-ace'
import 'brace/mode/python'
import 'brace/theme/monokai'
// ...
<AceEditor
name="ACE_EDITOR"
value={this.props.value}
mode="python"
theme="monokai"
/> It also works, but in the console it throws: So my guess is that I'll need to add some extra config on webpack in order to copy that required JS ( Any thoughts? |
@fbove Try importing |
@fbove i have the same question, and i don't want to validate text in any programming language,how can i set mode |
I'm importing |
I have the same issue and import 'brace' doesn't work for me. |
Found the solution: you must specify a mode when using AceEditor |
Still have the same issue. "react": "^17.0.2",
"react-ace": "^9.5.0", and <AceEditor
mode="json"
theme="solarized_dark"
// ...
/> |
Problem
Hello guys, I'm new to react-ace, very nice project by the way, I liked a lot.
I have a very noob question, I just bootstraped a project with https://github.com/react-boilerplate/react-boilerplate, added react-ace as a dependency and everything seems to be working fine.
But I'm getting the error above on the console:
It seems that it is something about webpack configuration between both projects? Can you guys recommend anything about this setup?
This is the way I'm using react-ace:
The text was updated successfully, but these errors were encountered: