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

Pirate Praveen praveen at onenetbeyond.org
Mon Jun 17 10:55:26 BST 2019



On Mon, 17 Jun, 2019 at 1:51 PM, Pirate Praveen 
<praveen at onenetbeyond.org> wrote:
> 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)

This was a bug in node-immutable build, which is fixed now. Once 
node-immutable



More information about the Pkg-javascript-devel mailing list