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

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -