I have tried using the node_modules/.bin/babel before.js -o after.js
command to convert from es6 to compatible js. I also had to run set-executionpolicy remotesigned
on windows powershell to fix error cannot be loaded because running
scripts is disabled on this system.
As it stands the node_modules/.bin/babel before.js -o after.js
command is throwing
SyntaxError (file directory link) Error while parsing config - JSON5: invalid end of input at 1:1.
I had the same problem and I find out that it's because I have an empty Json file it was for babel.config.json (or
.babelrc
).It works with the following content instead:
{}