[Pkg-javascript-devel] node-core-js 3 transition

Jonas Smedegaard jonas at jones.dk
Thu Sep 19 17:07:43 BST 2019


Quoting Pirate Praveen (2019-09-19 17:10:56)
> Hi team,
> 
> node-core-js 3.2.1 is available in experimental. We need to confirm/fix 
> the following packages. Help is welcome.
> 
> $ reverse-depends node-core-js
> Reverse-Depends
> ===============
> * node-babel-polyfill
> * node-babel-register
> * node-babel-runtime
> * node-fbjs
> 
> $ reverse-depends -b node-core-js
> Reverse-Build-Depends
> =====================
> * node-js-yaml
> * node-jsonld
> * node-object-inspect
> * node-rdf-canonize

node-jsonld fails to build with node-core-js 3.2.1:

BROWSERSLIST='node 6' babeljs \
        --no-babelrc --presets=env \
        --out-dir dist/node6/lib \
        -- lib
internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module 'core-js/library/fn/object/keys'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/usr/lib/nodejs/babel-runtime/core-js/object/keys.js:1:31)
    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)

Seems what needs patching is node-babel-runtime which in 
/usr/lib/nodejs/babel-runtime/core-js/object/keys.js seems to expect 
files below /usr/{lib,share}/nodejs/core-js/library/fn/object/keys

...which looks fishy to me even disregarding the new node-core-js: 
Shouldn't node-babel-runtime depend on node-core-js with code like 
that?!?


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20190919/9e596fcb/attachment.sig>


More information about the Pkg-javascript-devel mailing list