Skip to content

Instantly share code, notes, and snippets.

@jeyraof
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeyraof/56993a8c4ebc041097aa to your computer and use it in GitHub Desktop.
Save jeyraof/56993a8c4ebc041097aa to your computer and use it in GitHub Desktop.
Potentially unhandled rejection [2] Error loading "test" at test.js
Error evaluating test.js
Uncaught SyntaxError: Unexpected token < (WARNING: non-Error used)
<script src="/static/vendor/system.js"></script>
<script>
System.config({
paths: {
"babel": "/node_modules/babel-core/browser.min.js",
"react": "/node_modules/react/dist/react-with-addons.min.js"
},
transpiler: "babel"
});
System.import("test");
</script>
var React = require('react');
var HelloMessage = React.createClass({
render: function() {
return <div>Hello {this.props.name}</div>; // Error part
}
});
React.render(<HelloMessage name="John" />, document.getElementById('r-content'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment