[Pkg-javascript-devel] build node-i18next with webpack instead or rollup?

Nicolas Mora nicolas at babelouest.org
Sat Oct 12 20:44:23 BST 2019


Le 19-10-12 à 14 h 12, Pirate Praveen a écrit :
> 
> 
> Now autopkgtest is failing,
> 
> autopkgtest [23:40:13]: test require: [-----------------------
> /usr/share/nodejs/i18next/i18next.js:124 _export(_export.S + _export.F *
> !_descriptors, 'Object', { defineProperty: _objectDp.f }); ^ TypeError:
> Cannot read property 'S' of undefined at
> /usr/share/nodejs/i18next/i18next.js:124:18 at
> /usr/share/nodejs/i18next/i18next.js:2:82 at Object.<anonymous>
> (/usr/share/nodejs/i18next/i18next.js:5: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)
> 
Indeed...

If I set the output format to cjs instead of umd, the build and
autopkgtest succeed. I don't know if it's an upstream bug or a config
issue from my side.

I've updated the salsa repo with cjs format [1]. Is it correct?

/Nicolas

[1] - https://salsa.debian.org/js-team/node-i18next
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pEpkey.asc
Type: application/pgp-keys
Size: 2460 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20191012/398ca536/attachment.key>


More information about the Pkg-javascript-devel mailing list