Comments (7)
I'll investigate. Question what are you using to load the jsx? Webpack? Browserify? Something else?
from react-ace.
Ok looked into it and it should be fixed with 1.1.2. I didn't have the pragma set on the jsx file.
Which should be fixed now. I was able to get it working after that. Also if you are using jsx-loader you can use the insertPragma=React.DOM setting to fix this error.
Please confirm the fix.
from react-ace.
https://github.com/securingsincity/react-ace-webpack-example a working example using webpack
from react-ace.
Still getting this issue. Having a js-transpiled version would be nice.
from react-ace.
I am seeing this error as well.
package.json
"dependencies": {
"axios": "^0.5.4",
"brace": "^0.5.1",
"firebase": "^2.2.7",
"re-base": "0.0.11",
"react": "^0.13.3",
"react-ace": "^2.0.1",
"react-router": "^0.13.3",
"reactfire": "^0.4.0"
},
"devDependencies": {
"babel-core": "^5.6.15",
"babel-loader": "^5.2.2",
"node-libs-browser": "^0.5.2",
"webpack": "^1.10.0"
}
webpack.config.js
module.exports = {
entry: "./app/App.js",
output: {
filename: "public/bundle.js"
},
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel'
}
]
}
}
Thanks for the help.
from react-ace.
same issue, using webpack and babel. similar package.json and webpack.config.js as above.
from react-ace.
Also getting this. Reopen?
ERROR in ./~/react-ace/src/ace.jsx
Module parse failed: /Users/nathan/Google Drive/Go/src/github.com/nathanborror/wiki/node_modules/react-ace/src/ace.jsx Line 86: Unexpected token <
You may need an appropriate loader to handle this file type.
| height: this.props.height
| };
| return (<div id={this.props.name} onChange={this.onChange} style={divStyle}></div>);
| }
| });
@ ./~/react-ace/index.js 1:17-41
from react-ace.
Related Issues (20)
- Move to React 17/18?
- Changing editor sessions causes session/selection listeners to stop firing
- Unable to fully display content when line length is too long HOT 1
- ace在多个微应用间,通过组件渲染切换,css样式丢失 HOT 3
- expected expression, got '<' HOT 1
- No System Verilog Support
- import 'ace-builds/src-noconflict/mode-javascript';
- State is equal to it's default value on commands exec function call HOT 2
- Are mode and theme imports required for react-ace?
- Problem with so many lines of code (10k lines of JSON)
- Textarea has not attr "name"
- How to dynamically import modes and themes ?
- ace is not defined in production only
- Missing spaces in auto-complete
- SplitEditor not showing annotations HOT 1
- react-ace 11.0.1 Ace editor giving console error UNTRUSTED_TYPES_CHECK_STACK_BELOW
- Why can't ArrowUp, ArrowDown, and Backspace trigger in keyboard events
- DiffEditor does not highlight diffs HOT 1
- Warning: State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().
- The method of changeSession is not provided.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-ace.