Closed olypros closed 3 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-node --presets react,es2015 src/server.js
NODE_ENV=production node_modules/.bin/babel-watch --presets react,es2015 src/server.js This command gives me error (babel-watch)
NODE_ENV=production node_modules/.bin/babel-watch --presets react,es2015 src/server.js
Undexpected token at
<Route > ...
Have you set your .babelrc presets to es2015?
.babelrc
Babel options are unfortunately not supported as cli args. Use .babelrc, package.json, or babel.config.js instead.
package.json
babel.config.js
NODE_ENV=production node_modules/.bin/babel-node --presets react,es2015 src/server.js
This command dosent gives me any error (babel node) butNODE_ENV=production node_modules/.bin/babel-watch --presets react,es2015 src/server.js
This command gives me error (babel-watch)Undexpected token at
<Route > ...