kmagiera / babel-watch

Reload your babel-node app on JS source file changes. And do it fast.
MIT License
529 stars 70 forks source link

babel-watch unexpected token but babel-node works fine #56

Closed olypros closed 3 years ago

olypros commented 7 years ago

NODE_ENV=production node_modules/.bin/babel-node --presets react,es2015 src/server.js This command dosent gives me any error (babel node) but

NODE_ENV=production node_modules/.bin/babel-watch --presets react,es2015 src/server.js This command gives me error (babel-watch)

Undexpected token at

<Route > ...

nazimjamil commented 7 years ago

Have you set your .babelrc presets to es2015?

STRML commented 3 years ago

Babel options are unfortunately not supported as cli args. Use .babelrc, package.json, or babel.config.js instead.