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

JS minification failing and slowly destroying my life #11930

Closed
drone1 opened this issue Feb 16, 2022 · 14 comments
Closed

JS minification failing and slowly destroying my life #11930

drone1 opened this issue Feb 16, 2022 · 14 comments

Comments

@drone1
Copy link

drone1 commented Feb 16, 2022

I'm just going to say first and foremost that I can't deploy my app for the Meteor 2.6/MongoDB 5.0 compatibility at the moment, unless I upgrade to a dedicated Atlas server (from M2). I've been working for days trying to figure this issue out and it's been very stressful. I know you all are very busy but your suggestions would be greatly appreciated. I have already posted on the forums for days now with very little activity, and it was suggested by a Meteor team member that I post here. I'm the only developer and trying to build a business and have spent nearly 4 days on this now. Thanks in advance for any help.

I've seen similar issues dating back to 2015 with no concrete solution other than "it went away when I upgrade to Meteor 1.blah".

The issue is that uglify-js is choking on ES6+ code and croaking during minification, for example, at that keyword class.

This happens when running a server with --production or deploying to Galaxy.

Repro repo in my comment below.

(I had to instrument uglify-js's parse.js to get this info since there was no information at all printed other than Unexpected token: name (EventDispatcher).)

I'm using standard-minifiers-js@1.0.3-modules.8 (minifiers-js@1.1.8-modules.8), but I get a similar error if I attempt to use zodern:standard-minifier-js/zodern:hide-production-maps (see full packages and versions files below).

Whether I'm running Meteor 2.6, 2.7-beta0, or 2.2 (the last version of Meter I was running before updating to 2.6). For now, I'm sticking with Meteor 2.6 since it doesn't seem to make a difference. What was the last version of Meteor where this did not occur? It would have been 2.2, however, I'm on a new laptop and the old laptop is temporarily inaccessible. The working/inaccessible laptop (which is way behind on commits) runs MacOS, whereas this laptop is running Windows 10.0.19042 Build 19042 with WSL1 / Ubuntu 20.04.3 LTS.

The project resides in a Windows folder that is accessed from WSL via /c/mnt/Users/..... I mention this because trying to run a server on /home/.... in WSL has different errors, about missing permissions to rename a file. That's a separate issue, though.

Unsurprisingly, the errors go away if standard-minifier-js is removed from the project.

Output from my uglify-js/parse.js instrumentation in ~/.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1a6kq7r.cg82++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js below. I print some context code before & after the error position is just after the word class as I mentioned:

        const StreamReadUsage = 35041;
        const StaticCopyUsage = 35046;
        const DynamicCopyUsage = 35050;
        const StreamCopyUsage = 35042;
        const GLSL1 = '100';
        const GLSL3 = '300 es';

        /**
         * https://github.com/mrdoob/eventdispatcher.js/
         */
        class EventDispatcher {
                addEventListener(type, listener) {
                        if (this._listeners === undefined) this._listeners = {};
                        const listeners = this._listeners;

                        if (listeners[type] === undefined) {
                                listeners[type] = [];
                        }

                        if (listeners[type].indexOf....

Errors right afterwards:

=> Errors prevented startup:

   While minifying app code:

   /home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1a6kq7r.cg82++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:196:18:
   Unexpected token: punc ())
   at new JS_Parse_Error
   (/home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1a6kq7r.cg82++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:196:18)
   at js_error
   (/home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1a6kq7r.cg82++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:204:11)
   at croak
   (/home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1a6kq7r.cg82++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:700:9)
   at token_error
   (/home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1a6kq7r.cg82++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:708:9)
   at unexpected
   (/home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1a6kq7r.cg82++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:714:9)
   at expr_atom
   (/home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1a6kq7r.cg82++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:1209:13)
   at maybe_unary
   (/home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1a6kq7r.cg82++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:1383:19)
   at expr_ops
   (/home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1a6kq7r.cg82++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:1418:24)
   at maybe_conditional
   (/home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1a6kq7r.cg82++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:1423:20)
   at maybe_assign
   (/home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1a6kq7r.cg82++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:1447:20)


   While minifying app code:

   /home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1a6kq7r.cg82++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:196:18:
   Unexpected token: name (EventDispatcher)
   at new JS_Parse_Error
   (/home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1a6kq7r.cg82++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:196:18)
   at js_error
   (/home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1a6kq7r.cg82++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:204:11)
   at croak
   (/home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1a6kq7r.cg82++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:700:9)
   at token_error
   (/home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1a6kq7r.cg82++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:708:9)
   at unexpected
   (/home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1a6kq7r.cg82++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:714:9)
   at semicolon
   (/home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1a6kq7r.cg82++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:734:43)
   at simple_statement
   (/home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1a6kq7r.cg82++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:914:73)
   at
   /home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1a6kq7r.cg82++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:787:19
   at
   /home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1a6kq7r.cg82++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:747:24
   at block_
   (/home/.../.meteor/packages/standard-minifiers-js/.2.0.3-modules.8.1a6kq7r.cg82++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:1027:20)


=> Your application has errors. Waiting for file change.

.meteor/packages:

# Meteor packages used by this project, one per line.
# Check this file (and the other files in this directory) into your repository.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.

meteor-base@1.5.1             # Packages every Meteor app needs to have
mobile-experience@1.1.0       # Packages for a great mobile UX
mongo@1.14.0                   # The database Meteor supports right now
blaze-html-templates@1.0.4 # Compile .html files into Meteor Blaze views
reactive-var@1.0.11            # Reactive variable for tracker
tracker@1.2.0                 # Meteor's client-side reactive programming library

es5-shim@4.8.0                # ECMAScript 5 compatibility for older browsers.
ecmascript@0.16.1              # Enable ECMAScript2015+ syntax in app code
shell-server@0.5.0            # Server-side component of the `meteor shell` command

ostrio:flow-router-extra
dynamic-import@0.7.2
email@2.2.0
mdg:seo
fongandrew:find-and-modify
mdg:meteor-apm-agent
yasinuslu:blaze-meta
facts@1.0.9
meteorhacks:ssr
session@1.2.0
seba:minifiers-autoprefixer
okgrow:analytics
check@1.3.1
underscore@1.0.10
nolimits4web:swiper
accounts-password@2.2.0
froatsnook:valid-email
spacebars-compiler
http@1.4.2
mdg:validated-method
ddp-rate-limiter@1.1.0
server-render@0.4.0
dburles:collection-helpers
ostrio:flow-router-meta
jquery
typescript@4.4.1
aldeed:collection2@3.0.0
aldeed:schema-deny
alanning:roles
meteortesting:mocha
tunifight:loggedin-mixin
fourseven:scss
standard-minifiers-js

.meteor/versions:

accounts-base@2.2.1
accounts-password@2.2.0
alanning:roles@3.4.0
aldeed:collection2@3.5.0
aldeed:schema-deny@3.0.0
allow-deny@1.1.1
autoupdate@1.8.0
babel-compiler@7.8.0
babel-runtime@1.5.0
base64@1.0.12
binary-heap@1.0.11
blaze@2.5.0
blaze-html-templates@1.2.1
blaze-tools@1.1.2
boilerplate-generator@1.7.1
caching-compiler@1.2.2
caching-html-compiler@1.2.1
callback-hook@1.4.0
check@1.3.1
dburles:collection-helpers@1.1.0
ddp@1.4.0
ddp-client@2.5.0
ddp-common@1.4.0
ddp-rate-limiter@1.1.0
ddp-server@2.5.0
diff-sequence@1.1.1
dynamic-import@0.7.2
ecmascript@0.16.1
ecmascript-runtime@0.8.0
ecmascript-runtime-client@0.12.1
ecmascript-runtime-server@0.11.0
ejson@1.1.1
email@2.2.0
es5-shim@4.8.0
facts@1.0.9
fetch@0.1.1
fongandrew:find-and-modify@1.0.0
fourseven:scss@4.15.0
froatsnook:valid-email@1.0.0
geojson-utils@1.0.10
hot-code-push@1.0.4
html-tools@1.1.2
htmljs@1.1.1
http@1.4.4
id-map@1.1.1
inter-process-messaging@0.1.1
jquery@3.0.0
launch-screen@1.3.0
livedata@1.0.18
localstorage@1.2.0
logging@1.3.1
mdg:meteor-apm-agent@3.4.1
mdg:seo@3.3.0
mdg:validated-method@1.2.0
meteor@1.10.0
meteor-base@1.5.1
meteorhacks:ssr@2.2.0
meteortesting:browser-tests@1.3.5
meteortesting:mocha@2.0.3
meteortesting:mocha-core@8.1.2
minifier-css@1.6.0
minifiers-js@1.1.8-modules.8
minimongo@1.8.0
mobile-experience@1.1.0
mobile-status-bar@1.1.0
modern-browsers@0.1.7
modules@0.18.0
modules-runtime@0.12.0
mongo@1.14.4
mongo-decimal@0.1.2
mongo-dev-server@1.1.0
mongo-id@1.0.8
mongo-livedata@1.0.12
nolimits4web:swiper@4.4.1
npm-mongo@4.3.1
observe-sequence@1.0.19
okgrow:analytics@0.2.3
ordered-dict@1.1.0
ostrio:flow-router-extra@3.7.5
ostrio:flow-router-meta@2.1.1
ostrio:flow-router-title@3.2.1
promise@0.12.0
raix:eventemitter@1.0.0
random@1.2.0
rate-limit@1.0.9
react-fast-refresh@0.2.2
reactive-dict@1.3.0
reactive-var@1.0.11
reload@1.3.1
retry@1.1.0
routepolicy@1.1.1
seba:minifiers-autoprefixer@1.2.1
server-render@0.4.0
service-configuration@1.3.0
session@1.2.0
sha@1.0.9
shell-server@0.5.0
socket-stream-client@0.4.0
spacebars@1.2.0
spacebars-compiler@1.3.0
standard-minifiers-js@1.0.3-modules.8
templating@1.4.1
templating-compiler@1.4.1
templating-runtime@1.5.0
templating-tools@1.2.1
tmeasday:check-npm-versions@1.0.2
tracker@1.2.0
tunifight:loggedin-mixin@0.1.0
typescript@4.4.1
ui@1.0.13
underscore@1.0.10
url@1.3.2
webapp@1.13.0
webapp-hashing@1.1.0
yasinuslu:blaze-meta@0.3.3

.meteor/release:

METEOR@2.6

package.json:

{
	"name": "...",
	"private": true,
	"scripts": {},
	"dependencies": {
		"@babel/runtime": "^7.9.2",
		"@easypost/api": "^3.7.0",
		"@paypal/checkout-server-sdk": "^1.0.1",
		"@vimeo/player": "^2.16.3",
		"adaptive-bezier-curve": "^1.0.3",
		"async": "^2.6.2",
		"aws-cloudfront-sign": "^2.2.0",
		"aws-sdk": "^2.1036.0",
		"babel-polyfill": "^6.26.0",
		"babel-runtime": "^6.26.0",
		"batchelor": "^2.0.2",
		"bcrypt": "^5.0.1",
		"bitly": "^6.0.8",
		"blueimp-load-image": "^5.10.0",
		"bullmq": "^1.10.0",
		"chart.js": "^2.9.4",
		"clone-deep": "^4.0.1",
		"connect-route": "^0.1.5",
		"cookieconsent": "^3.1.0",
		"core-js": "^2.6.5",
		"crypto-js": "^4.1.1",
		"date-diff": "^0.2.1",
		"deep-object-diff": "^1.1.0",
		"detector-webgl": "^2.0.0",
		"digest-fetch": "^1.2.1",
		"dropbox-v2-api": "^2.4.5",
		"force-graph": "^1.33.1",
		"format-email": "^0.1.0",
		"google-spreadsheet": "^3.2.0",
		"googleapis": "^91.0.0",
		"hls.js": "^0.10.2-canary.3983",
		"hmac-auth-express": "^4.1.0",
		"hmmac": "^0.2.2",
		"http-headers-validation": "^0.0.1",
		"i18n-iso-countries": "^3.7.8",
		"iplocation": "^6.1.0",
		"jquery": "^3.5.1",
		"js-base64": "^2.5.1",
		"lodash": "^4.17.21",
		"md5": "^2.2.1",
		"memoizee": "^0.4.15",
		"meteor-node-stubs": "^0.4.1",
		"mime-types": "^2.1.34",
		"mimemessage": "^1.0.5",
		"mongodb": "^4.2.0",
		"music-metadata-browser": "^1.0.0",
		"object-sizeof": "^1.5.1",
		"postprocessing": "^6.5.0",
		"qrcode-reader": "^1.0.4",
		"random-seed": "^0.3.0",
		"rectangle-overlap": "^2.0.0",
		"request-promise-native": "^1.0.7",
		"shippo": "^1.3.1",
		"simpl-schema": "^1.12.0",
		"simple-hmac-auth": "github:drone1/simple-hmac-auth",
		"sprintf": "^0.1.5",
		"stats.js": "^0.17.0",
		"stripe": "^6.30.0",
		"three": "^0.134.0",
		"three-line-2d": "^1.1.6",
		"useragent": "^2.3.0",
		"yamlparser": "0.0.2"
	},
	"devDependencies": {
		"chai": "^4.3.6",
		"command-line-args": "^5.2.1",
		"command-line-usage": "^5.0.5",
		"currency-converter": "^0.1.12",
		"git-cz": "^4.8.0",
		"gm": "^1.23.1",
		"replace-ext": "^1.0.0"
	},
	"config": {
		"commitizen": {
			"path": "git-cz"
		}
	}
}

npm-shrinkwrap can be found here: https://pastebin.com/puXCsBNs

@drone1
Copy link
Author

drone1 commented Feb 16, 2022

OK, I was able to create a repro: https://github.com/drone1/minify-hell-repro.git (repro instructions included)

Significant commits:

  1. create a 2.6 app with meteor create --bare . and changing nothing else

  2. Commit 2: I copied my .meteor/{packages,versions,platforms,release}, package.json and npm-shrinkwrap.json files. .meteor/{platforms,release} were the same so no diff there.

  3. README.md - instructions (above)

  4. Reverted package.json and (deleted) npm-shrinkwrap.json back to the initial commit, as they do are not need to repro.

In case it's useful, my modified uglify-js/parse.js modifies croak as follows:

    function croak(msg, line, col, pos) {
        var ctx = S.input.context();

        // my changes....welcome to hell
        const token = S.token
        console.log($TEXT.substring(token.pos-256, token.pos+256))
        // end of my changes

        js_error(msg,
                 ctx.filename,
                 line != null ? line : ctx.tokline,
                 col != null ? col : ctx.tokcol,
                 pos != null ? pos : ctx.tokpos);
    };

Full path: ~/.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1a6kq7r.cg82++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js

Please let me know if you'd like me to remove .meteor/local from .meteor/.gitignore and commit/push those files.

@zodern
Copy link
Member

zodern commented Feb 16, 2022

Your app is using a very old version of standard-minifier-js: standard-minifiers-js@1.0.3-modules.8. The latest is 2.8.0, which doesn't use uglify-js.

Usually when you update the Meteor release, it also updates the minifier. I'm not sure why it didn't for your app.

@drone1
Copy link
Author

drone1 commented Feb 16, 2022

@zodern Hey, I saw this after posting and have been testing again. Thanks for checking. Yes, I was somehow using standard-minifiers-js (with an 's') was in my project, rather than standard-minifier-js.

Unfortunately, while my minify-hell-repro repo no longer actually reproduces the issue (even with my package.json/npm-shrinkwrap.json again), I still get errors in my own project, after having removed standard-minifierS-js and adding standard-minifier-js@2.8.0.

New errors below, from my project, which are using the exact same package.json, npm-shrinkwrap.json, and .meteor/{packages,versions,release,platforms} files. Any clues as to what is happening? Is there a flag I can pass or config I can edit to get more context from the babel parse error?

Thank you!

   While minifying app code:

   /home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:147:45:
   Identifier 'h' has already been declared. (1:690724)
   at Object._raise
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:147:45)
   at Object.raiseWithData
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:142:17)
   at Object.raise
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:91:17)
   at FlowScopeHandler.checkRedeclarationInScope
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1334:16)
   at Object.parseFunction
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1301:12)
   at Object.parseFunctionStatement
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:742:17)
   at Object.parseStatementContent
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:368:21)
   at Object.parseStatement
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:331:17)
   at Object.parseStatement
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1831:26)
   at Object.parseBlockOrModuleBlockBody
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1067:25)
   at Object.parseBlockBody
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1043:10)
   at Object.parseBlock
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1013:10)
   at Object.parseStatementContent
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:398:21)
   at Object.parseStatement
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:331:17)
   at Object.parseStatement
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1831:26)
   at Object.parseIfStatement
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:752:28)
   at Object.parseStatementContent
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:375:21)
   at Object.parseStatement
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:331:17)
   at Object.parseStatement
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1831:26)
   at Object.parseBlockOrModuleBlockBody
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1067:25)
   at Object.parseBlockBody
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1043:10)
   at Object.parseBlock
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1013:10)
   at Object.parseFunctionBody
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2402:24)
   at Object.parseFunctionBody
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1790:20)
   at Object.parseFunctionBodyAndFinish
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2375:10)
   at Object.parseFunctionBodyAndFinish
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1813:13)
   at
   /home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1288:12
   at Object.withSmartMixTopicForbiddingContext
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2880:14)
   at Object.parseFunction
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1286:10)
   at Object.parseFunctionStatement
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:742:17)
   at Object.parseStatementContent
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:368:21)
   at Object.parseStatement
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:331:17)
   at Object.parseStatement
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1831:26)
   at Object.parseBlockOrModuleBlockBody
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1067:25)
   at Object.parseBlockBody
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1043:10)
   at Object.parseBlock
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1013:10)
   at Object.parseFunctionBody
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2402:24)
   at Object.parseFunctionBody
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1790:20)
   at Object.parseFunctionBodyAndFinish
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2375:10)
   at Object.parseFunctionBodyAndFinish
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1813:13)
   at
   /home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1288:12
   at Object.withSmartMixTopicForbiddingContext
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2880:14)
   at Object.parseFunction
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1286:10)
   at Object.parseFunctionOrFunctionSent
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1554:17)
   at Object.parseExprAtom
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1146:21)
   at Object.parseExprAtom
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:670:23)
   at Object.parseUpdate
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:650:21)
   at Object.parseMaybeUnary
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:621:23)
   at Object.parseMaybeUnaryOrPrivate
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:14)
   at Object.parseExprOps
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:384:23)
   at Object.parseMaybeConditional
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:342:23)
   at Object.parseMaybeAssign
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:302:21)
   at Object.parseMaybeAssign
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2909:20)
   at
   /home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:256:12
   at Object.allowInAnd
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2906:12)
   at Object.parseMaybeAssignAllowIn
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:255:17)
   at Object.parseObjectProperty
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2140:16)
   at Object.parseObjPropValue
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2199:12)
   at Object.parseObjPropValue
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2508:13)
   at Object.parsePropertyDefinition
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2038:10)
   at Object.parseObjectLike
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1923:21)
   at Object.parseExprAtom
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1138:21)
   at Object.parseExprAtom
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:670:23)
   at Object.parseUpdate
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:650:21)
   at Object.parseMaybeUnary
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:621:23)
   at Object.parseMaybeUnaryOrPrivate
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:14)
   at Object.parseExprOps
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:384:23)
   at Object.parseMaybeConditional
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:342:23)
   at Object.parseMaybeAssign
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:302:21)
   at Object.parseMaybeAssign
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2909:20)
   at
   /home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:256:12
   at Object.allowInAnd
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2906:12)
   at Object.parseMaybeAssignAllowIn
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:255:17)
   at Object.parseObjectProperty
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2140:16)
   at Object.parseObjPropValue
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2199:12)
   at Object.parseObjPropValue
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2508:13)
   at Object.parsePropertyDefinition
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2038:10)
   at Object.parseObjectLike
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1923:21)
   at Object.parseExprAtom
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1138:21)
   at Object.parseExprAtom
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:670:23)
   at Object.parseUpdate
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:650:21)
   at Object.parseMaybeUnary
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:621:23)
   at Object.parseMaybeUnaryOrPrivate
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:14)
   at Object.parseExprOps
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:384:23)
   at Object.parseMaybeConditional
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:342:23)
   at Object.parseMaybeAssign
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:302:21)
   at Object.parseMaybeAssign
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2909:20)
   at
   /home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:256:12
   at Object.allowInAnd
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2906:12)
   at Object.parseMaybeAssignAllowIn
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:255:17)
   at Object.parseObjectProperty
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2140:16)
   at Object.parseObjPropValue
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2199:12)
   at Object.parseObjPropValue
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2508:13)
   at Object.parsePropertyDefinition
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2038:10)
   at Object.parseObjectLike
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1923:21)
   at Object.parseExprAtom
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1138:21)
   at Object.parseExprAtom
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:670:23)
   at Object.parseUpdate
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:650:21)
   at Object.parseMaybeUnary
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:621:23)
   at Object.parseMaybeUnaryOrPrivate
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:14)
   at Object.parseExprOps
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:384:23)
   at Object.parseMaybeConditional
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:342:23)
   at Object.parseMaybeAssign
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:302:21)
   at Object.parseMaybeAssign
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2909:20)
   at
   /home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:256:12
   at Object.allowInAnd
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2906:12)
   at Object.parseMaybeAssignAllowIn
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:255:17)
   at Object.parseObjectProperty
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2140:16)
   at Object.parseObjPropValue
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2199:12)
   at Object.parseObjPropValue
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2508:13)
   at Object.parsePropertyDefinition
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2038:10)
   at Object.parseObjectLike
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1923:21)
   at Object.parseExprAtom
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1138:21)
   at Object.parseExprAtom
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:670:23)
   at Object.parseUpdate
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:650:21)
   at Object.parseMaybeUnary
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:621:23)
   at Object.parseMaybeUnaryOrPrivate
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:14)
   at Object.parseExprOps
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:384:23)
   at Object.parseMaybeConditional
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:342:23)
   at Object.parseMaybeAssign
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:302:21)
   at Object.parseMaybeAssign
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2909:20)
   at
   /home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:256:12
   at Object.allowInAnd
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2906:12)
   at Object.parseMaybeAssignAllowIn
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:255:17)
   at Object.parseExprListItem
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2547:18)
   at Object.parseCallExpressionArguments
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:997:14)
   at Object.parseCoverCallAndAsyncArrowHead
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:849:29)
   at Object.parseSubscript
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:735:19)
   at Object.parseSubscript
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:3096:20)
   at Object.parseSubscripts
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:691:19)
   at Object.parseSubscripts
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:3046:20)
   at Object.parseExprSubscripts
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:676:17)
   at Object.parseUpdate
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:650:21)
   at Object.parseMaybeUnary
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:621:23)
   at Object.parseMaybeUnaryOrPrivate
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:14)
   at Object.parseExprOps
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:384:23)
   at Object.parseMaybeConditional
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:342:23)
   at Object.parseMaybeAssign
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:302:21)
   at Object.parseMaybeAssign
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2909:20)
   at
   /home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:256:12
   at Object.allowInAnd
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:2901:16)
   at Object.parseMaybeAssignAllowIn
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:255:17)
   at Object.parseVar
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1205:18)
   at Object.parseVarStatement
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:891:10)
   at Object.parseStatementContent
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:391:21)
   at Object.parseStatement
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:331:17)
   at Object.parseStatement
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1831:26)
   at Object.parseBlockOrModuleBlockBody
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1067:25)
   at Object.parseBlockBody
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:1043:10)
   at Object.parseProgram
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:214:10)
   at Object.parseTopLevel
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:197:25)
   at Object.parseTopLevel
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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:3162:30)
   at Object.parse
   (/home/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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/.../.meteor/packages/standard-minifier-js/.2.8.0.hahvcl.u8aoe++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)


=> Your application has errors. Waiting for file change.

@zodern
Copy link
Member

zodern commented Feb 16, 2022

The error is happening while creating a stats.json file to be used by bundle-visualizer. A workaround for now would be to switch to zodern:standard-minifier-js, and set the DISABLE_CLIENT_STATS env var to true to skip this step.

The error is from parsing the minified code at

const ast = Babel.parse(source);

@drone1
Copy link
Author

drone1 commented Feb 16, 2022

@zodern OK, that allowed me to pass the minification stage and run my server in --production mode! Thank you!

Any idea why this is happening?

@drone1
Copy link
Author

drone1 commented Feb 16, 2022

Except, now, hilariously, I just see the error in the inspector console when I point Chrome at my local server.

image

So there is a real error there that doesn't exist when the code isn't minified. Any suggestions on how to get additional details? Digging through this minified source file hasn't been very useful.

@drone1
Copy link
Author

drone1 commented Feb 16, 2022

By the way, why is bundle-visualizer even present in the build? According to the docs, it needs to be enabled explicitly with --extra-packages bundle-visualizer

@drone1
Copy link
Author

drone1 commented Feb 17, 2022

I found the commit where the error began (which was months ago, but I had not deployed), using a (thank you, git bisect), however no Meteor packages changed and no NPM package changes were made -- only (a lot of) code changes.

packages/minifyStdJS/plugin/stats.js breaking doesn't make sense to me, though -- it's only analyzing meteor packages and npm modules, according to the docs, and those files didn't change. So either I made a mistake somewhere, or there's something of a mystery here.

Is there no way to get additional details from the minifier? I'm in ~/.meteor/packages/standard-minifier-js/.2.6.0.17yx38o.afj1++os+web.browser+web.browser.legacy+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/ and deeper in node_modules/@babel/parser/... but don't see a .babelrc or any kind of config.

I looked into connecting Chrome/inspector to the node process but I'm guessing I need to run meteor from source in order to break on a line like this, since I don't see this file anywhere? ...at extractModuleSizesTree (packages/minifyStdJS/plugin/stats.js:24:23)

I've read and followed the instructions on https://github.com/meteor/meteor/blob/devel/DEVELOPMENT.md, have an alias to my local copy of meteor, but running my server command fails because my proj (at this point) was on Meteor 2.0. The docs say mymeteor update --release 2.0 won't function so I guess now that I've got the source I'll just test my most recent project state and try to step through Meteor minifyStdJS code rather than trying to find the issue in the commit that destroyed minification.

Suggestions still welcome though. :)

@ghost
Copy link

ghost commented Feb 18, 2022

I'm wondering if during your update to 2.6 you also ran the meteor command for updating all the packages.

meteor update --all-packages

@drone1
Copy link
Author

drone1 commented Feb 18, 2022

[SOLVED]

Alright, I very carefully isolated the line that broke everything in my commit back in November.

The minification error was tested with and Meteor 2.6 / standard-minifier-js@2.8.0 and [older versions] Meteor 2.0 and standard-minifier-js@2.6.0.

Here is the code that was breaking minification with an extremely obscure error and very little information:

image

And this code does not break minification:

image

getAnimAmount is a local function and broke the minifier.

Changing that code from a function getAnimAmount()... to:

const getAnimAmount = (elapsed, animationDuration) => {
	return Math.pow(Utils.SimpleSpline(Utils.Clamp01(elapsed / animationDuration)), 0.4);
}

does not break the minifier.

Please let me know if I can provide more detail.

Takeaways/requests:

  1. It would great if the minifier could print out filename and unminified source code for context. I had to put quite a lot of time into this. This would have saved me loads of time. This seems like a Babel issue. I can look into where to report this at the source if needed. Any help would be appreciated there if anyone happens to just know.
  2. I need a way to test this going forward as part of my regular testing (as part of a Github Action, for example). For an app that isn't deploying constantly, this kind of failure could easily happen to someone and tracking it down can be very time consuming. But how can I run a command that will test whether minification fails? Running a server with --production doesn't actually kill the process I believe, and I believe that would be a requirement, or would at least make it cleaner to manage.

I will see if I can find a repro for my repo repro and update that soon, and will report back here.

(@alanionita: Thanks for the response. Yes I ran that command and it didn't change the error.)

@drone1
Copy link
Author

drone1 commented Feb 19, 2022

[Reproduction]

If anyone is interested, I put together a bare minimum repro case in this repo, created with meteor create --bare minify-hell-repro + hell.js).

You can see in hell.js what breaks and doesn't break minification in Meteor 2.6 & standard-minifier-js@2.8.0 and Meteor 2.7-beta.0.

// ----------------------------------------------
// These funcs break JS minification:

function gatewayToHell() {
	if (true) {
		function satan() {
			return 1;
		}

		const foo = 666;
	}
}

/*
// 'let foo' also bad
function gatewayToHell() {
	if (true) {
		function satan() {
			return 1;
		}
		let foo = 666;
	}
}
*/


// ----------------------------------------------
// These funcs do NOT break JS minification:

/*
// 'var foo' is OK
function notGatewayToHell() {
	if (true) {
		function satan() {
			return 1;
		}
		var foo = 666;
	}
}
// Fine without surrounding 'if(true)'
function notGatewayToHell() {
	function satan() {
		return 1;
	}
	const foo = 666;
}
// Fine with 'const satan = ...' rather than 'function satan()'
function notGatewayToHell() {
	if (true) {
		const satan = function() {
			return 1;
		}
		const foo = 666;
	}
}
*/

console.log('** Server started successfully.')

@lynchem
Copy link

lynchem commented Feb 21, 2022

We've suffered through issues like this before as well and it's really frustrating. There was a PR open #10006 to add an error message when it fails so you can at least see where the issue is and fix it quicker - but it was closed without merging. It'd be great to get something like that included both in the regular standard minifier & zodern's fork.

@denihs
Copy link
Contributor

denihs commented Feb 24, 2022

We narrowed down the problem to the package terser (that we use to minify our code). We opened an issue there terser/terser#1155.

We are studying the replacement of terser by esbuild. Soon we'll create a PR with a proposal.

@denihs
Copy link
Contributor

denihs commented Mar 28, 2022

Hi,

This should be fixed now with the new version 2.7.

I'm closing this for now.

@denihs denihs closed this as completed Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants