Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails at minification while processing packages/modules.js #11721

Open
gischer opened this issue Oct 26, 2021 · 16 comments
Open

Build fails at minification while processing packages/modules.js #11721

gischer opened this issue Oct 26, 2021 · 16 comments

Comments

@gischer
Copy link

@gischer gischer commented Oct 26, 2021

I don't know how to reproduce this. The app runs fine. This was on Meteor 1.10.2, where I first got the problem. I upgraded to current (2.5) with no change.

Here is the error message (apologies for how long it is):

Errors prevented bundling:                    
While minifying app code:                     

/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/error.js:134:45:
Identifier 'o' has already been declared. (1:468270)
at Object._raise
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/error.js:134:45)
at Object.raiseWithData
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/error.js:129:17)
at Object.raise
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/error.js:78:17)
at FlowScopeHandler.checkRedeclarationInScope
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/util/scope.js:152:12)
at FlowScopeHandler.declareName
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/util/scope.js:113:12)
at FlowScopeHandler.declareName
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/plugins/flow/scope.js:31:11)
at Object.registerFunctionStatementId
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/statement.js:1231:16)
at Object.parseFunction
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/statement.js:1200:12)
at Object.parseFunctionStatement
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/statement.js:641:17)
at Object.parseStatementContent
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/statement.js:267:21)
at Object.parseStatement
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/statement.js:230:17)
at Object.parseStatement
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/plugins/flow/index.js:1834:26)
at Object.parseBlockOrModuleBlockBody
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/statement.js:966:25)
at Object.parseBlockBody
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/statement.js:942:10)
at Object.parseBlock
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/statement.js:912:10)
at Object.parseStatementContent
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/statement.js:297:21)
at Object.parseStatement
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/statement.js:230:17)
at Object.parseStatement
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/plugins/flow/index.js:1834:26)
at Object.parseIfStatement
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/statement.js:651:28)
at Object.parseStatementContent
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/statement.js:274:21)
at Object.parseStatement
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/statement.js:230:17)
at Object.parseStatement
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/plugins/flow/index.js:1834:26)
at Object.parseBlockOrModuleBlockBody
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/statement.js:966:25)
at Object.parseBlockBody
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/statement.js:942:10)
at Object.parseBlock
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/statement.js:912:10)
at Object.parseFunctionBody
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:2334:24)
at Object.parseFunctionBody
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/plugins/flow/index.js:1789:20)
at Object.parseFunctionBodyAndFinish
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:2307:10)
at Object.parseFunctionBodyAndFinish
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/plugins/flow/index.js:1812:13)
at
/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/statement.js:1187:12
at Object.withSmartMixTopicForbiddingContext
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:2827:14)
at Object.parseFunction
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/statement.js:1185:10)
at Object.parseFunctionOrFunctionSent
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:1495:17)
at Object.parseExprAtom
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:1174:21)
at Object.parseExprAtom
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/plugins/jsx/index.js:567:22)
at Object.parseExprSubscripts
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:652:23)
at Object.parseUpdate
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:632:21)
at Object.parseMaybeUnary
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:604:23)
at Object.parseExprOps
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:374:23)
at Object.parseMaybeConditional
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:340:23)
at Object.parseMaybeAssign
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:279:21)
at Object.parseMaybeAssign
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/plugins/flow/index.js:2914:20)
at
/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:234:12
at Object.allowInAnd
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:2853:12)
at Object.parseMaybeAssignAllowIn
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:233:17)
at Object.parseObjectProperty
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:2094:16)
at Object.parseObjPropValue
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:2148:12)
at Object.parseObjPropValue
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/plugins/flow/index.js:2514:13)
at Object.parsePropertyDefinition
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:1992:10)
at Object.parseObjectLike
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:1858:25)
at Object.parseExprAtom
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:1166:21)
at Object.parseExprAtom
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/plugins/jsx/index.js:567:22)
at Object.parseExprSubscripts
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:652:23)
at Object.parseUpdate
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:632:21)
at Object.parseMaybeUnary
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:604:23)
at Object.parseExprOps
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:374:23)
at Object.parseMaybeConditional
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:340:23)
at Object.parseMaybeAssign
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:279:21)
at Object.parseMaybeAssign
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/plugins/flow/index.js:2914:20)
at
/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:234:12
at Object.allowInAnd
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:2853:12)
at Object.parseMaybeAssignAllowIn
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:233:17)
at Object.parseObjectProperty
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:2094:16)
at Object.parseObjPropValue
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:2148:12)
at Object.parseObjPropValue
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/plugins/flow/index.js:2514:13)
at Object.parsePropertyDefinition
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:1992:10)
at Object.parseObjectLike
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:1858:25)
at Object.parseExprAtom
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:1166:21)
at Object.parseExprAtom
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/plugins/jsx/index.js:567:22)
at Object.parseExprSubscripts
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:652:23)
at Object.parseUpdate
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:632:21)
at Object.parseMaybeUnary
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:604:23)
at Object.parseExprOps
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:374:23)
at Object.parseMaybeConditional
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:340:23)
at Object.parseMaybeAssign
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:279:21)
at Object.parseMaybeAssign
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/plugins/flow/index.js:2914:20)
at
/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:234:12
at Object.allowInAnd
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:2853:12)
at Object.parseMaybeAssignAllowIn
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:233:17)
at Object.parseObjectProperty
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:2094:16)
at Object.parseObjPropValue
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:2148:12)
at Object.parseObjPropValue
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/plugins/flow/index.js:2514:13)
at Object.parsePropertyDefinition
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:1992:10)
at Object.parseObjectLike
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:1858:25)
at Object.parseExprAtom
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:1166:21)
at Object.parseExprAtom
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/plugins/jsx/index.js:567:22)
at Object.parseExprSubscripts
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:652:23)
at Object.parseUpdate
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:632:21)
at Object.parseMaybeUnary
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:604:23)
at Object.parseExprOps
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:374:23)
at Object.parseMaybeConditional
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:340:23)
at Object.parseMaybeAssign
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:279:21)
at Object.parseMaybeAssign
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/plugins/flow/index.js:2914:20)
at
/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:234:12
at Object.allowInAnd
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:2853:12)
at Object.parseMaybeAssignAllowIn
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:233:17)
at Object.parseObjectProperty
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:2094:16)
at Object.parseObjPropValue
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:2148:12)
at Object.parseObjPropValue
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/plugins/flow/index.js:2514:13)
at Object.parsePropertyDefinition
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:1992:10)
at Object.parseObjectLike
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:1858:25)
at Object.parseExprAtom
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:1166:21)
at Object.parseExprAtom
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/plugins/jsx/index.js:567:22)
at Object.parseExprSubscripts
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:652:23)
at Object.parseUpdate
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:632:21)
at Object.parseMaybeUnary
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:604:23)
at Object.parseExprOps
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:374:23)
at Object.parseMaybeConditional
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:340:23)
at Object.parseMaybeAssign
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:279:21)
at Object.parseMaybeAssign
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/plugins/flow/index.js:2914:20)
at
/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:234:12
at Object.allowInAnd
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:2853:12)
at Object.parseMaybeAssignAllowIn
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:233:17)
at Object.parseExprListItem
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:2479:18)
at Object.parseCallExpressionArguments
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:973:14)
at Object.parseCoverCallAndAsyncArrowHead
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:825:29)
at Object.parseSubscript
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:715:19)
at Object.parseSubscript
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/plugins/flow/index.js:3105:20)
at Object.parseSubscripts
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:673:19)
at Object.parseSubscripts
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/plugins/flow/index.js:3051:20)
at Object.parseExprSubscripts
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:658:17)
at Object.parseUpdate
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:632:21)
at Object.parseMaybeUnary
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:604:23)
at Object.parseExprOps
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:374:23)
at Object.parseMaybeConditional
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:340:23)
at Object.parseMaybeAssign
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:279:21)
at Object.parseMaybeAssign
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/plugins/flow/index.js:2914:20)
at
/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:234:12
at Object.allowInAnd
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:2848:16)
at Object.parseMaybeAssignAllowIn
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/expression.js:233:17)
at Object.parseVar
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/statement.js:1104:18)
at Object.parseVarStatement
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/statement.js:790:10)
at Object.parseStatementContent
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/statement.js:290:21)
at Object.parseStatement
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/statement.js:230:17)
at Object.parseStatement
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/plugins/flow/index.js:1834:26)
at Object.parseBlockOrModuleBlockBody
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/statement.js:966:25)
at Object.parseBlockBody
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/statement.js:942:10)
at Object.parseProgram
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/statement.js:117:10)
at Object.parseTopLevel
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/statement.js:102:25)
at Object.parseTopLevel
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/plugins/flow/index.js:3171:30)
at Object.parse
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/parser/index.js:41:10)
at Object.parse
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/parser/src/index.js:58:38)
at Object.parse
(/home/gischer/.meteor/packages/standard-minifier-js/.2.7.1.1u87i0p.egqu++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@meteorjs/babel/parser.js:7:22)
at Object.parse (packages/babel-compiler.js:40:29)
at extractModuleSizesTree (packages/minifyStdJS/plugin/stats.js:25:23)
at packages/minifyStdJS/plugin/minify-js.js:83:21
at Array.forEach (<anonymous>)
at MeteorMinifier.processFilesForBundle
(packages/minifyStdJS/plugin/minify-js.js:66:11)

Having looked at #8020, I tried using abernix:standard-minifier-js. It failed with this error message:

Errors prevented bundling:                    
While minifying app code:                     
eval at <anonymous>
(/home/gischer/.meteor/packages/abernix_standard-minifier-js/.1.3.19.1oa891d.rgdc++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/abernix_minifier-js/node_modules/uglify-js/tools/node.js:27:1),
<anonymous>:86:23: Unexpected token: punc ()) while minifying
packages/modules.js
at JS_Parse_Error.get (eval at <anonymous>
(/home/gischer/.meteor/packages/abernix_standard-minifier-js/.1.3.19.1oa891d.rgdc++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/abernix_minifier-js/node_modules/uglify-js/tools/node.js:27:1),
<anonymous>:86:23)
at Object.parse
(/home/gischer/.meteor/packages/meteor-tool/.2.5.0.1s7i3gv.7mk6++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/tools/utils/tools/utils/parse-stack.ts:38:21)
at Object.exception (/tools/utils/buildmessage.js:534:29)
at /tools/isobuild/bundler.js:1425:22
at Object.enterJob (/tools/utils/buildmessage.js:388:12)
at ClientTarget.minifyJs (/tools/isobuild/bundler.js:1416:18)
at /tools/isobuild/bundler.js:908:16
at Object.enterJob (/tools/utils/buildmessage.js:388:12)
at ClientTarget.make (/tools/isobuild/bundler.js:852:18)
at /tools/isobuild/bundler.js:3260:14
at /tools/isobuild/bundler.js:3413:25
at Array.forEach (<anonymous>)
at /tools/isobuild/bundler.js:3367:14
at Object.capture (/tools/utils/buildmessage.js:283:5)
at bundle (/tools/isobuild/bundler.js:3241:31)
at /tools/isobuild/bundler.js:3184:32
at Slot.withValue
(/home/gischer/.meteor/packages/meteor-tool/.2.5.0.1s7i3gv.7mk6++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/@wry/context/lib/context.esm.js:69:29)
at Object.withCache
(/home/gischer/.meteor/packages/meteor-tool/.2.5.0.1s7i3gv.7mk6++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/tools/fs/tools/fs/files.ts:1662:39)
at Object.bundle (/tools/isobuild/bundler.js:3184:16)
at buildCommand (/tools/cli/commands.js:1117:30)
at /tools/cli/commands.js:946:25
at Function.run
(/home/gischer/.meteor/packages/meteor-tool/.2.5.0.1s7i3gv.7mk6++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/tools/tool-env/tools/tool-env/profile.ts:289:14)
at /tools/cli/commands.js:944:18
at
/home/gischer/.meteor/packages/meteor-tool/.2.5.0.1s7i3gv.7mk6++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/meteor-promise/fiber_pool.js:43:40

While minifying app code:

eval at <anonymous>
(/home/gischer/.meteor/packages/abernix_standard-minifier-js/.1.3.19.1oa891d.rgdc++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/abernix_minifier-js/node_modules/uglify-js/tools/node.js:27:1),
<anonymous>:86:23: Unexpected token: punc ()) while minifying
packages/modules.js
at JS_Parse_Error.get (eval at <anonymous>
(/home/gischer/.meteor/packages/abernix_standard-minifier-js/.1.3.19.1oa891d.rgdc++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/abernix_minifier-js/node_modules/uglify-js/tools/node.js:27:1),
<anonymous>:86:23)
at Object.parse
(/home/gischer/.meteor/packages/meteor-tool/.2.5.0.1s7i3gv.7mk6++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/tools/utils/tools/utils/parse-stack.ts:38:21)
at Object.exception (/tools/utils/buildmessage.js:534:29)
at /tools/isobuild/bundler.js:1425:22
at Object.enterJob (/tools/utils/buildmessage.js:388:12)
at ClientTarget.minifyJs (/tools/isobuild/bundler.js:1416:18)
at /tools/isobuild/bundler.js:908:16
at Object.enterJob (/tools/utils/buildmessage.js:388:12)
at ClientTarget.make (/tools/isobuild/bundler.js:852:18)
at /tools/isobuild/bundler.js:3260:14
at /tools/isobuild/bundler.js:3413:25
at Array.forEach (<anonymous>)
at /tools/isobuild/bundler.js:3367:14
at Object.capture (/tools/utils/buildmessage.js:283:5)
at bundle (/tools/isobuild/bundler.js:3241:31)
at /tools/isobuild/bundler.js:3184:32
at Slot.withValue
(/home/gischer/.meteor/packages/meteor-tool/.2.5.0.1s7i3gv.7mk6++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/@wry/context/lib/context.esm.js:69:29)
at Object.withCache
(/home/gischer/.meteor/packages/meteor-tool/.2.5.0.1s7i3gv.7mk6++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/tools/fs/tools/fs/files.ts:1662:39)
at Object.bundle (/tools/isobuild/bundler.js:3184:16)
at buildCommand (/tools/cli/commands.js:1117:30)
at /tools/cli/commands.js:946:25
at Function.run
(/home/gischer/.meteor/packages/meteor-tool/.2.5.0.1s7i3gv.7mk6++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/tools/tool-env/tools/tool-env/profile.ts:289:14)
at /tools/cli/commands.js:944:18
at
/home/gischer/.meteor/packages/meteor-tool/.2.5.0.1s7i3gv.7mk6++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/meteor-promise/fiber_pool.js:43:40

This looks to be a problem with a generated file (packages/modules.js) but I'm not sure which one, since there are more than one under my source tree, or what to do about it. And it seems a lot different than the other error.

@filipenevola
Copy link
Member

@filipenevola filipenevola commented Oct 27, 2021

hi @gischer, do you have any variable called o in your code?

Identifier 'o' has already been declared

Or this error is coming from a minified var?

It seems a problem in the minifier or in your code duplicating a variable.

If the problem is in the minifier it should be a specific case that you have in your code as this is not happening to everyone. We would need to narrow down this use case.

@gischer
Copy link
Author

@gischer gischer commented Oct 27, 2021

I just grepped through the whole thing (it's pretty big) and found no instance of any variable named 'o'. This matches with my recollection. I'm cautious, because it's kinda big at this point, but the answer is no.

I've built it many, many times with no issue (with minification or the meteor build in general) but for now. So I'm kinda mystified.

@gischer
Copy link
Author

@gischer gischer commented Oct 27, 2021

Thinking about my most recent changes, I think the biggest one is that I started using isolated-vm. This has led to code (that should only be used in testing) that looks like this:

export const OnActionScript =
  "function onCardPlay(){};" +
  "function onRoundStart(){};" +
  "function onTurnStart(){};" +
  "function onAction(me) {" +
  "  dealDamage(me, 'body', 1);" +
  "};" +
  "function onAttack(){};" +
  "function onHit(){};" +
  "function beforeTurnEnd(){};" +
  "function afterMove(){};" +
  "function beforeApplyCondition(){};" +
  "function onBecomeExhausted(){};";

It doesn't seem like this would lead to my problem, but I don't really know.

Because isolated-vm is server-only (it has native code associated), I have stuff like this:

export function createHook(name, text, arguments) {
  if (Meteor.isServer) {
    return createHookServer(name, text, arguments);
  } else {
    return {run(){}};
  }
}

if (Meteor.isServer) {
  import {getIsolate, getContext, clearContext, createUnpackScript, setGlobals} from '/imports/lib/scripting/isolates.js';
  import { setUtilities, embedText} from '/imports/lib/scripting/utilities';

  function createHookServer(name, text, arguments) {
  var hook;
  // ...
    return hook;
  }
}

@gischer
Copy link
Author

@gischer gischer commented Oct 28, 2021

I have a question about how the minifier works. My guess is that it uses "import" and "require" to figure out which files to process and include. (I stick to "import"). But it could instead just grab everything that is a *.js (or whatever) in the project.

If I'm going to cut this down, I really do need to know what to do. I'm gonna assume for now that it follows "import" references.

@filipenevola
Copy link
Member

@filipenevola filipenevola commented Oct 29, 2021

Hi @gischer it depends on how you are using Meteor, if you are using mainModules in your package.json or not, for example.

This document explains somethings that could be useful https://docs.meteor.com/packages/modules.html

Have you tried to remove the isolated-vm part of your code to see if the problem still happens?

@gischer
Copy link
Author

@gischer gischer commented Oct 29, 2021

Here is the relevant bit of my package.json:

"meteor": {
    "mainModule": {
      "client": "client/main.js",
      "server": "server/main.js"
    },
    "testModule": "tests/main.js"
  },

I believe this means it loads those files first and then pulls in references. Is that right?

I have removed all references to isolated-vm (it was only imported in one file). I haven't uninstalled it, though.

@gischer
Copy link
Author

@gischer gischer commented Oct 29, 2021

I have discovered more information, but I'm not sure what to do with it. By commenting out "import" statements and using stubs to replace the imports, I've narrowed things down to file A.js and B.js. File A, under normal operation, imports 5 functions from file B.js thus:

import {func1, func2, func3, func4, func5} from 'B.js';

(Those aren't the names in my files, but the names don't seem to matter here.) Under this condition, the build breaks with the error above (at some point it started referencing the variable 's' instead of the variable 'o'. Don't know what that means. It all looks kind of the same though.).

If I eliminate any one of them, touching only A.js thus:

import {func1, func2, func3, func4} from 'B.js';
function func5(){};

Everything minifies just fine, and the build succeeds.

UNFORTUNATELY, when I tried to create a brand-new Meteor app and reproduce this error directly, it works just fine. I don't really know what to do with this information. I'll keep poking at it and trying things as I think of them.

@gischer
Copy link
Author

@gischer gischer commented Oct 29, 2021

Oh, FWIW, the previous comment describes a situation where "isolated-vm" has been removed from the project.

@filipenevola
Copy link
Member

@filipenevola filipenevola commented Nov 1, 2021

@gischer the first step here would be to have a reproduction, otherwise, we don't have a way to analyze the issue and try to identify the root cause.

As you can't reproduce in a new project, you should try to remove other parts of your code to see if the error stops and then narrow down the root cause.

@gischer
Copy link
Author

@gischer gischer commented Nov 1, 2021

@filipenevola I have, in fact, been able to make the error stop via commenting out code, producing the situation I described above.

In another full repository, I have done something similar, but without removing any other code. I have found a certain file in which I must now remove two of five imported functions to get it to work.

That is,

import {funcA, funcB, funcC, funcD, funcE} from 'B.js'

fails, but if I eliminate ANY two of the imported functions and stub them locally, like this,

import {funcA, funcB, funcD} from 'B.js';
function funcC(){};
function funcE(){};

it works. I change nothing else. This strongly suggests to me that this is some sort of buffer overflow.

I can well appreciate that you can't do much without reproducing the problem. AND, it turns out my repository is proprietary, and it isn't hosted on github, so I'm not sure there's a good way to share it with you.

I post this because of my hope that it will inspire you or someone else to suggest a course of action I hadn't already thought of. I will work on figuring out how to share the repository with you.

@filipenevola
Copy link
Member

@filipenevola filipenevola commented Nov 2, 2021

Ok, I appreciate your explanation and I hope you can create a reproduction.

@gischer
Copy link
Author

@gischer gischer commented Nov 4, 2021

Ok, I have a repository that reproduces the problem. It is
https://github.com/gischer/reproduce-minify-problem

@denihs
Copy link
Contributor

@denihs denihs commented Nov 8, 2021

Hi @gischer, I tried to run your project but there is a lot of imports failing because the files don't exist. Maybe we don't need to run the project to see the problem you're having, but we need to know how you're reproducing the error.

Can you add a readme to the repository explaining step by step how to reproduce the error?

Also if this error does not block the app from running, maybe it's also good if you fix the imports so we can run the app as well.

Thanks.

@gischer
Copy link
Author

@gischer gischer commented Nov 10, 2021

I will add a README. The project in the example repository does not run. It does reproduce the error if you type "meteor build ../output"

@gischer
Copy link
Author

@gischer gischer commented Nov 10, 2021

I have added a README as asked. I am assuming that the project does not need to run (the problem reproduces when you do "meteor build"). Let me know if that is not the case. I will work on making it start up cleanly.

@gischer
Copy link
Author

@gischer gischer commented Nov 10, 2021

You can now type meteor run and the project will start up. There are still lots of errors in the browser due to missing stuff. However, my belief is that leaving that stuff out probably makes the error easier to track down?

The repository definitely reproduces the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants