I have this code:
\"use strict\";
import browserSync from \"browser-sync\";
import httpProxy from \"http-proxy\";
let proxy = httpProxy.createProxyServer({
Same error, different cause:
Transpiling had worked before and then suddenly stopped working, with files simply being copied as is.
Turns out I opened the .babelrc
at some point and Windows decided to append .txt
to the filename. Now that .babelrc.txt
wasn't recognized by babel. Removing the .txt
suffix fixed that.