cross-var icon indicating copy to clipboard operation
cross-var copied to clipboard

Deprecated Babel pacakge used

Open SamKamalesan opened this issue 2 years ago • 2 comments

I see babel-preset-es2015 is one of the dependency, but its deprecated now, can we have the alternative package used here ?

SamKamalesan avatar Aug 11 '22 18:08 SamKamalesan

Yep! This causes an error which stops code from running (it works fine outside of Docker for me, but errors in Docker?)

Posting the error below (for people who also have this issue, as I've spent a few hours trying to fix it. If I knew it came from cross-var, it'd have been a lot easier to debug)

cross-var cross-env NODE_ENV=production ts-node src/index.ts

/usr/src/app/node_modules/babel-core/lib/transformation/file/options/option-manager.js:328
throw e; ^

ReferenceError: Unknown plugin "transform-runtime" specified in "/usr/src/app/node_modules/babel-plugin-transform-regenerator/node_modules/regenerator-transform/package.json" at 0, attempted to resolve relative to "/usr/src/app/node_modules/babel-plugin-transform-regenerator/node_modules/regenerator-transform" (While processing preset: "/usr/src/app/node_modules/babel-preset-es2015/lib/index.js") at /usr/src/app/node_modules/babel-core/lib/transformation/file/options/option-manager.js:180:17 at Array.map () at Function.normalisePlugins (/usr/src/app/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20) at OptionManager.mergeOptions (/usr/src/app/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36) at OptionManager.init (/usr/src/app/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12) at compile (/usr/src/app/node_modules/babel-register/lib/node.js:103:45) at loader (/usr/src/app/node_modules/babel-register/lib/node.js:144:14) at Object.require.extensions. [as .js] (/usr/src/app/node_modules/babel-register/lib/node.js:154:7) at Module.load (node:internal/modules/cjs/loader:1081:32) at Function.Module._load (node:internal/modules/cjs/loader:922:12)

Lawlzer avatar Jan 18 '23 20:01 Lawlzer

Same here!

dfelix avatar Jan 30 '23 14:01 dfelix