javascript - Babel.js was not loaded on Systemjs's transpiler -


in using transpiler of , encountered error @ chrome console.

potentially unhandled rejection [2] error loading "test" @ test.js error evaluating test.js uncaught syntaxerror: unexpected token < (warning: non-error used) 

i have doubt jsx transpiling failed because not loaded. there not calling browser.min.js(babel-browser) stack in chrome's network-tab.

you can see code on here.

i found solution.

i changed it:

var react = require('react'); 

to

import react 'react'; 

es6 code of target js file call babel.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -