[Pkg-javascript-devel] Bug#958768: Bug#958768: node-i18next: Package fail to build with node-rollup-plugin-babel 4.4.0
Pirate Praveen
praveen at onenetbeyond.org
Wed Apr 29 14:06:33 BST 2020
On Sat, Apr 25, 2020 at 9:51 am, yadd at debian.org wrote:
> Package: node-i18next
> Severity: important
>
> This package fails to build with node-rollup-plugin-babel 4.4.0
> (available in experimental dist). Problem seems to be just a missing
> dependency to one a node-babel (6) package.
Upstream already supports babel 7, and build is passing, but there
seems to be an issue with @babel/runtime. I have pushed my changes to
salsa.
+ rollup -c
./src/index.js → ./dist/cjs/i18next.js...
created ./dist/cjs/i18next.js in 1.5s
./src/index.js → ./dist/esm/i18next.js...
created ./dist/esm/i18next.js in 747ms
./src/index.js → dist/umd/i18next.js...
(!) Unresolved dependencies
https://rollupjs.org/guide/en#warning-treating-module-as-external-dependency
@babel/runtime/helpers/esm/typeof (imported by src/i18next.js,
src/Translator.js, src/defaults.js)
@babel/runtime/helpers/esm/objectSpread (imported by src/i18next.js,
src/logger.js, src/ResourceStore.js, src/Translator.js,
src/Interpolator.js, src/BackendConnector.js)
@babel/runtime/helpers/esm/classCallCheck (imported by src/i18next.js,
src/logger.js, src/EventEmitter.js, src/ResourceStore.js,
src/Translator.js, src/LanguageUtils.js, src/PluralResolver.js,
src/Interpolator.js, src/BackendConnector.js)
@babel/runtime/helpers/esm/createClass (imported by src/i18next.js,
src/logger.js, src/EventEmitter.js, src/ResourceStore.js,
src/Translator.js, src/LanguageUtils.js, src/PluralResolver.js,
src/Interpolator.js, src/BackendConnector.js)
@babel/runtime/helpers/esm/possibleConstructorReturn (imported by
src/i18next.js, src/ResourceStore.js, src/Translator.js,
src/BackendConnector.js)
@babel/runtime/helpers/esm/getPrototypeOf (imported by src/i18next.js,
src/ResourceStore.js, src/Translator.js, src/BackendConnector.js)
@babel/runtime/helpers/esm/assertThisInitialized (imported by
src/i18next.js, src/ResourceStore.js, src/Translator.js,
src/BackendConnector.js)
@babel/runtime/helpers/esm/inherits (imported by src/i18next.js,
src/ResourceStore.js, src/Translator.js, src/BackendConnector.js)
@babel/runtime/helpers/esm/toConsumableArray (imported by src/logger.js)
@babel/runtime/helpers/esm/slicedToArray (imported by
src/BackendConnector.js)
(!) Missing global variable names
Use output.globals to specify browser global variable names
corresponding to external modules
@babel/runtime/helpers/esm/typeof (guessing '_typeof')
@babel/runtime/helpers/esm/objectSpread (guessing '_objectSpread')
@babel/runtime/helpers/esm/classCallCheck (guessing '_classCallCheck')
@babel/runtime/helpers/esm/createClass (guessing '_createClass')
@babel/runtime/helpers/esm/possibleConstructorReturn (guessing
'_possibleConstructorReturn')
@babel/runtime/helpers/esm/getPrototypeOf (guessing '_getPrototypeOf')
@babel/runtime/helpers/esm/assertThisInitialized (guessing
'_assertThisInitialized')
@babel/runtime/helpers/esm/inherits (guessing '_inherits')
@babel/runtime/helpers/esm/toConsumableArray (guessing
'_toConsumableArray')
@babel/runtime/helpers/esm/slicedToArray (guessing '_slicedToArray')
(!) node-resolve plugin: The onwrite hook used by plugin node-resolve
is deprecated. The generateBundle hook should be used instead.
created dist/umd/i18next.js in 720ms
+ uglifyjs.terser dist/umd/i18next.js -o dist/umd/i18next.min.js
dh_auto_test --buildsystem=nodejs
/usr/bin/node -e require\(\"./.\"\)
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module '@babel/runtime/helpers/typeof'
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> (/<<PKGBUILDDIR>>/dist/cjs/i18next.js:5: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)
apt-file find @babel/runtime/helpers does not bring anything. May be a
bug in node-babel7?
More information about the Pkg-javascript-devel
mailing list