On Sat, May 16, 2020 at 11:48 pm, Pirate Praveen <prav...@onenetbeyond.org> wrote:


On Thu, May 14, 2020 at 3:12 pm, Pirate Praveen <prav...@onenetbeyond.org> wrote:
$ yarnpkg
/usr/share/nodejs/@babel/runtime/helpers/inherits.js:5
throw new TypeError("Super expression must either be null or a function");
   ^

TypeError: Super expression must either be null or a function
at _inherits (/usr/share/nodejs/@babel/runtime/helpers/inherits.js:5:11)
   at /usr/share/nodejs/yarn/lib/cli/commands/global.js:58:29
at Object.<anonymous> (/usr/share/nodejs/yarn/lib/cli/commands/global.js:107:2)
   at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
   at Module.load (internal/modules/cjs/loader.js:653:32)
   at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
   at Function.Module._load (internal/modules/cjs/loader.js:585:3)
   at Module.require (internal/modules/cjs/loader.js:692:17)
   at require (internal/modules/cjs/helpers.js:25:18)

Possibly we are missing some plugins which were part of babel-preset-stage-0 or we may have to patch the original code to be compatible on node 10 without needing transpiling.

I think the missing plugin is babel-plugin-transform-inline-imports-commonjs but when using that, we get the following error during build. See babel7 branch (this plugin is not yet added there).

The author of the plugin suggests using another plugin from babel 7, but that did not work.

https://github.com/zertosh/babel-plugin-transform-inline-imports-commonjs/pull/13#issuecomment-505228612

--
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to