[Pkg-javascript-devel] Bug#930634: TypeError: Class constructor Map cannot be invoked without 'new'

Pirate Praveen praveen at onenetbeyond.org
Mon Jun 17 09:21:31 BST 2019


Control: tag -1 help

With node-immutable from NEW/sala, I get this error,

Command: dpkg-buildpackage -us -uc -b -rfakeroot
dpkg-buildpackage: info: source package node-rollup
dpkg-buildpackage: info: source version 0.52.0-1
dpkg-buildpackage: info: source distribution UNRELEASED
dpkg-buildpackage: info: source changed by Pirate Praveen 
<praveen at debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 fakeroot debian/rules clean
dh clean
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -rf dist
rm -f bin/rollup
rm -rf stage*
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_clean
 debian/rules build
dh build
   dh_update_autotools_config
   dh_autoreconf
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
set -e;mkdir -p stage1/;cp -r src stage1/;cp -r browser stage1/;cp -r 
bin stage1/;cp package.json stage1/;cp rollup.config.js stage1/
cd stage1/ && BABEL_PRESET=es2015 rollup --verbose -c

src/node-entry.js → dist/rollup.js, dist/rollup.es.js...
(!) Unresolved dependencies
https://github.com/rollup/rollup/wiki/Troubleshooting#treating-module-as-external-dependency
sourcemap-codec (imported by src/Bundle.js, src/Module.js, 
src/utils/transform.js, src/utils/transformBundle.js, 
src/utils/collapseSourcemaps.js)
magic-string (imported by src/Bundle.js, src/Module.js)
acorn (imported by src/Module.js)
locate-character (imported by src/Module.js, src/ast/Node.js, 
src/utils/transform.js)
immutable (imported by src/ast/ExecutionPathOptions.js)
is-reference (imported by src/ast/nodes/Identifier.js)
source-map (imported by src/Module.js)
rollup-pluginutils/src/createFilter.js (imported by src/watch/index.js)
require-relative (imported by src/watch/chokidar.js)
created dist/rollup.js, dist/rollup.es.js in 4s

src/browser-entry.js → dist/rollup.browser.js...
(!) Unresolved dependencies
https://github.com/rollup/rollup/wiki/Troubleshooting#treating-module-as-external-dependency
sourcemap-codec (imported by src/Bundle.js, src/Module.js, 
src/utils/transform.js, src/utils/transformBundle.js, 
src/utils/collapseSourcemaps.js)
magic-string (imported by src/Bundle.js, src/Module.js)
acorn (imported by src/Module.js)
locate-character (imported by src/Module.js, src/ast/Node.js, 
src/utils/transform.js)
immutable (imported by src/ast/ExecutionPathOptions.js)
is-reference (imported by src/ast/nodes/Identifier.js)
source-map (imported by src/Module.js)
(!) Missing global variable names
Use options.globals to specify browser global variable names 
corresponding to external modules
sourcemap-codec (guessing 'sourcemapCodec')
magic-string (guessing 'MagicString')
acorn (guessing 'acorn')
locate-character (guessing 'locateCharacter')
immutable (guessing 'Immutable')
is-reference (guessing 'isReference')
source-map (guessing 'sourceMap')
created dist/rollup.browser.js in 2.8s

bin/src/index.js → bin/rollup...
(!) Unresolved dependencies
https://github.com/rollup/rollup/wiki/Troubleshooting#treating-module-as-external-dependency
minimist (imported by bin/src/index.js)
require-relative (imported by bin/src/run/index.js)
chalk (imported by bin/src/logging.js, bin/src/run/batchWarnings.js, 
bin/src/run/loadConfigFile.js, bin/src/run/build.js, 
bin/src/run/watch.js)
pretty-ms (imported by bin/src/run/build.js, bin/src/run/watch.js)
signal-exit (imported by bin/src/run/watch.js)
date-time (imported by bin/src/run/watch.js)
ansi-escapes (imported by bin/src/run/alternateScreen.js)
created bin/rollup in 245ms
chmod +x stage1//bin/rollup
touch stage1/build.stamp
set -e;mkdir -p stage2/;cp -r src stage2/;cp -r browser stage2/;cp -r 
bin stage2/;cp package.json stage2/;cp rollup.config.js stage2/
cd stage2/ && BABEL_PRESET=es2015 node ../stage1//bin/rollup --verbose 
-c
[!] TypeError: Class constructor Map cannot be invoked without 'new'
TypeError: Class constructor Map cannot be invoked without 'new'
    at Function.Map [as create] 
(/<<PKGBUILDDIR>>/stage1/src/ast/ExecutionPathOptions.js:23:30)
    at Node.create [as shouldBeIncluded] 
(/<<PKGBUILDDIR>>/stage1/src/ast/Node.js:214:45)
    at Node.shouldBeIncluded [as includeInBundle] 
(/<<PKGBUILDDIR>>/stage1/src/ast/nodes/ExportDefaultDeclaration.js:19:25)
    at includeInBundle 
(/<<PKGBUILDDIR>>/stage1/src/ast/variables/LocalVariable.js:75:55)
    at Set.forEach (<anonymous>)
    at ExportDefaultVariable.forEach 
(/<<PKGBUILDDIR>>/stage1/src/ast/variables/LocalVariable.js:75:21)
    at ExportDefaultVariable.includeVariable 
(/<<PKGBUILDDIR>>/stage1/src/ast/variables/ExportDefaultVariable.js:29:7)
    at includeVariable (/<<PKGBUILDDIR>>/stage1/src/Bundle.js:199:15)
    at Array.forEach (<anonymous>)
    at forEach (/<<PKGBUILDDIR>>/stage1/src/Bundle.js:195:30)

make[1]: *** [debian/rules:33: stage2/build.stamp] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:11: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit 
status 2
--------------------------------------------------------------------------------
Build finished at 2019-06-17T08:10:40Z





More information about the Pkg-javascript-devel mailing list