[Pkg-javascript-devel] nodejs-12 transition

Xavier yadd at debian.org
Thu Feb 6 19:53:38 GMT 2020


Le 06/02/2020 à 19:19, Nilesh Patra a écrit :
> Hi,
> I am finding these errors in a few packages:
> 
> ERROR in
> /usr/share/nodejs/babel-runtime/core-js/object/get-own-property-descriptor.js
> Module not found: Error: Can't resolve
> 'core-js/library/fn/object/get-own-property-descriptor' in
> '/usr/share/nodejs/babel-runtime/core-js/object'
>  @
> /usr/share/nodejs/babel-runtime/core-js/object/get-own-property-descriptor.js
> 1:30-94
>  @ ./dev/View/Popup/Compose.js
>  @ ./dev/App/User.js
>  @ ./dev/app.js
> 
> When I looked at the file, it looks like:
> 
> [~]$ cat
> /usr/share/nodejs/babel-runtime/core-js/object/get-own-property-descriptor.js
> module.exports = { "default":
> require("core-js/library/fn/object/get-own-property-descriptor"),
> __esModule: true };
> 
> To me, it looks like using core-js at 2, instead of 3(latest in debian). It
> looks like an issue with babel-runtime (one of the provides of
> node-babel). Should node-babel be fixed accordingly,
> or is there a workaround here, instead?
> I am not very sure of that, and need help to fix this issue.
> Could anyone please help me out?
> That would be great.
> 
> Thanks and regards
> Nilesh

Hi,

The file is here (core-js 2 is embedded):
/usr/share/nodejs/babel-runtime/node_modules/core-js/library/fn/object/get-own-property-descriptor.js

Which version of node-babel do you use ?

Current testing version:
$ cat
 /usr/share/nodejs/babel-runtime/core-js/object/get-own-property-descriptor.js
require('../../modules/es6.object.get-own-property-descriptor');
var $Object = require('../../modules/_core').Object;
module.exports = function getOwnPropertyDescriptor(it, key) {
  return $Object.getOwnPropertyDescriptor(it, key);
};

Which seems to work fine



More information about the Pkg-javascript-devel mailing list