Giter Club home page Giter Club logo

Comments (7)

securingsincity avatar securingsincity commented on May 26, 2024

I'll investigate. Question what are you using to load the jsx? Webpack? Browserify? Something else?

from react-ace.

securingsincity avatar securingsincity commented on May 26, 2024

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.

securingsincity avatar securingsincity commented on May 26, 2024

https://github.com/securingsincity/react-ace-webpack-example a working example using webpack

from react-ace.

zanesterling avatar zanesterling commented on May 26, 2024

Still getting this issue. Having a js-transpiled version would be nice.

from react-ace.

timdoes avatar timdoes commented on May 26, 2024

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.

ryoia avatar ryoia commented on May 26, 2024

same issue, using webpack and babel. similar package.json and webpack.config.js as above.

from react-ace.

nathanborror avatar nathanborror commented on May 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.