Uglify-js issues via standard-minifiers-js

First of all, I don’t know if this is a 2.6 issue as I haven’t deployed from this machine before.

Witht that said, I’m getting an error in standard-minifiers-js. I’ve tried doing a meteor remove standard-minifiers-js followed by meteor add standard-minifiers-js, which acatually changed the error from undeclared identifier h or something close to this, to the output below.

I’ve also tried doing rm -rf .meteor/local before deploying.

My app runs fine once I followed the 2.6 migration guide. But running the app doesn’t test minification…

Seems like maybe there’s something off in the webpack/uglify config(s) or something? Any suggestions on what else to try? I’m stuck. Thanks.

Meteor 2.6, Windows 10.0.19042 Build 19042, WSL1 / Ubuntu

meteor npm install && TIMEOUT_SCALE_FACTOR=11 DEPLOY_HOSTNAME=galaxy.meteor.com nohup meteor deploy <MY HOSTNAME> --settings settings.json

...

Talking to Galaxy servers at https://galaxy.meteor.com
Preparing to build your app...

...

Errors prevented deploying:
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:675: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:683: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:689: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:1184: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:1358: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:1393: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:1398: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:1422: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:675: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:683: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:689: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:709: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:889: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:762: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:722:24
at block_
(/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:1002:20)

Would you give a try to version 2.6.1?

It is not the recommended version yet but there are updates on the standard-minifiers-js, so maybe that can help you out. This is the preview of the migration guide.

I’m first just trying to deploy from another machine ATM w/ a fresh clone & meteor install. If I repro the issue there, then yes, I’ll try updating to 2.6.1. Thanks for the response.

@fredmaiaarantes Sorry, but how do I upgrade to 2.6.1?

➜  meteor update --release 2.6.1
Meteor 2.6.1: unknown release.

I tried with --force as well.

Hey @drone1, I think 2.6.1 has been dropped in favor of 2.7 which is now in beta.

If you want to try it out, you can use:

meteor update --release 2.7-beta.0

This is the PR with the details of what has been done in this version so far.

@fredmaiaarantes Unfortunately I get the exact same errors after upgrading to 2.7-beta-0. :frowning:

FWIW, below are my .meteor/ files. Anything obviously out of whack? Any other suggestions? I’m at a total loss here and need to update my app for the Meteor 2.6/Atlas incompatibility (even if I upgrade my Atlas cluster, I will need to deploy again sooner than later).

> meteor update --release 2.7-beta.0

    Changes to your project's package version selections from updating the release:

    accounts-base      upgraded from 2.2.1 to 2.2.2-beta270.0
    accounts-password  upgraded from 2.2.0 to 2.3.0-beta270.0
    babel-compiler     upgraded from 7.8.0 to 7.9.0-beta270.0
    ecmascript         upgraded from 0.16.1 to 0.16.2-beta270.0
    ejson              upgraded from 1.1.1 to 1.1.2-beta270.0
    email              upgraded from 2.2.0 to 2.2.1-beta270.0
    typescript         upgraded from 4.4.1 to 4.5.4-beta270.0

    ...: updated to Meteor 2.7-beta.0.

.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.3                   # 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.2-beta270.0              # 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.1-beta270.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.3.0-beta270.0
froatsnook:valid-email
spacebars-compiler
http@1.4.2
mdg:validated-method
ddp-rate-limiter@1.1.0
server-render@0.4.1
dburles:collection-helpers
ostrio:flow-router-meta
jquery
typescript@4.5.4-beta270.0
aldeed:collection2@3.0.0
aldeed:schema-deny
alanning:roles
meteortesting:mocha
tunifight:loggedin-mixin
fourseven:scss
standard-minifiers-js

.meteor/versions:

accounts-base@3.2.2-beta270.0
accounts-password@2.3.0-beta270.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.9.0-beta270.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.2-beta270.0
ecmascript-runtime@0.8.0
ecmascript-runtime-client@0.12.1
ecmascript-runtime-server@0.11.0
ejson@1.1.2-beta270.0
email@2.2.1-beta270.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.5.4-beta270.0
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@3.7-beta.0

BTW why is this 3.7-beta.0? My command (confirmed) installed 2.7-beta.0, as you can see in the output above.

.meteor/platforms:

server
browser

Exact new (but apparently same or very similar) error output:

 /home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1fpagxi.w989e++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.1fpagxi.w989e++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.1fpagxi.w989e++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.1fpagxi.w989e++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:675:9)at token_error
 (/home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1fpagxi.w989e++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:683:9)at unexpected
 (/home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1fpagxi.w989e++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:689:9)at semicolon
 (/home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1fpagxi.w989e++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:709:43)
 at simple_statement
 (/home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1fpagxi.w989e++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:889:73)
 at
 /home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1fpagxi.w989e++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:762:19 
 at
 /home/.../.meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1fpagxi.w989e++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:722:24 
 at block_
 (/home/.../.meteor/packages/standard-minifiers-js/.2.0.3-modules.8.1fpagxi.w989e++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifiers-js/minifiers-js/node_modules/uglify-js/lib/parse.js:1002:20)

Release file shows METEOR@3.7-beta.0? That sounds odd indeed.

And after running meteor update --release 2.0 and attempting to deploy again, I’m back where I started with the errors below, which I mentioned but hadn’t actually included. Also standard-minifiers-js, but am getting Identifier 'h' has already been declared (1:692032)

I’m in some special kind of hell here.

Minify error output: /home/.../.meteor/packages/standard-minifier-js/.2.6.0.10blsh2.jr18++os+web.brow - Pastebin.com

.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.4.0             # Packages every Meteor app needs to have
mobile-experience@1.1.0       # Packages for a great mobile UX
mongo@1.10.1                   # 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

standard-minifier-js@2.6.0    # JS minifier run for production mode
es5-shim@4.8.0                # ECMAScript 5 compatibility for older browsers.
ecmascript@0.15.0              # 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.6.0
fourseven:scss
email@2.0.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@1.7.0
froatsnook:valid-email
spacebars-compiler
http@1.4.2
lamhieu:meteorx
mdg:validated-method
ddp-rate-limiter@1.0.9
server-render@0.3.1
dburles:collection-helpers
ostrio:flow-router-meta
jquery
typescript@4.1.2
aldeed:collection2@3.0.0
aldeed:schema-deny
alanning:roles
meteortesting:mocha

.meteor/versions:

accounts-base@1.8.0
accounts-password@1.7.0
alanning:roles@3.2.3
aldeed:collection2@3.2.1
aldeed:schema-deny@3.0.0
allow-deny@1.1.0
autoupdate@1.7.0
babel-compiler@7.6.0
babel-runtime@1.5.0
base64@1.0.12
binary-heap@1.0.11
blaze@2.3.4
blaze-html-templates@1.1.2
blaze-tools@1.0.10
boilerplate-generator@1.7.1
caching-compiler@1.2.2
caching-html-compiler@1.1.3
callback-hook@1.3.0
check@1.3.1
dburles:collection-helpers@1.1.0
ddp@1.4.0
ddp-client@2.4.0
ddp-common@1.4.0
ddp-rate-limiter@1.0.9
ddp-server@2.3.2
deps@1.0.12
diff-sequence@1.1.1
dynamic-import@0.6.0
ecmascript@0.15.0
ecmascript-runtime@0.7.0
ecmascript-runtime-client@0.11.0
ecmascript-runtime-server@0.10.0
ejson@1.1.1
email@2.0.0
es5-shim@4.8.0
facts@1.0.9
fetch@0.1.1
fongandrew:find-and-modify@1.0.0
fourseven:scss@4.12.0
froatsnook:valid-email@1.0.0
geojson-utils@1.0.10
hot-code-push@1.0.4
html-tools@1.0.11
htmljs@1.0.11
http@1.4.3
id-map@1.1.0
inter-process-messaging@0.1.1
jquery@3.0.0
lamhieu:meteorx@2.1.1
launch-screen@1.2.0
livedata@1.0.18
localstorage@1.2.0
logging@1.2.0
mdg:meteor-apm-agent@3.3.0
mdg:seo@3.2.2
mdg:validated-method@1.2.0
meteor@1.9.3
meteor-base@1.4.0
meteorhacks:ssr@2.2.0
meteortesting:browser-tests@1.3.4
meteortesting:mocha@2.0.1
meteortesting:mocha-core@8.1.2
minifier-css@1.5.3
minifier-js@2.6.0
minimongo@1.6.1
mobile-experience@1.1.0
mobile-status-bar@1.1.0
modern-browsers@0.1.5
modules@0.16.0
modules-runtime@0.12.0
mongo@1.10.1
mongo-decimal@0.1.2
mongo-dev-server@1.1.0
mongo-id@1.0.7
mongo-livedata@1.0.12
nolimits4web:swiper@4.4.1
npm-bcrypt@0.9.3
npm-mongo@3.8.1
observe-sequence@1.0.16
okgrow:analytics@3.0.5
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.11.2
raix:eventemitter@1.0.0
random@1.2.0
rate-limit@1.0.9
react-fast-refresh@0.1.0
reactive-dict@1.3.0
reactive-var@1.0.11
reload@1.3.1
retry@1.1.0
routepolicy@1.1.0
seba:minifiers-autoprefixer@1.2.1
server-render@0.3.1
service-configuration@1.0.11
session@1.2.0
sha@1.0.9
shell-server@0.5.0
socket-stream-client@0.3.1
spacebars@1.0.15
spacebars-compiler@1.1.3
srp@1.1.0
standard-minifier-js@2.6.0
templating@1.3.2
templating-compiler@1.3.3
templating-runtime@1.3.2
templating-tools@1.1.2
tmeasday:check-npm-versions@0.3.2
tracker@1.2.0
typescript@4.1.2
ui@1.0.13
underscore@1.0.10
url@1.3.1
webapp@1.10.0
webapp-hashing@1.1.0
yasinuslu:blaze-meta@0.3.3

.meteor/release:

METEOR@2.0

package.json: { "name": "...", "private": true, "scripts": {}, "dependencies": { - Pastebin.com
package-lock: Hell - Pastebin.com

Have you got a .babelrc or other babel config in your project?

@coagmano good question. Not my project, but some modules do, it looks like:

./node_modules/hls.js/.babelrc
./node_modules/@easypost/api/.babelrc
./node_modules/digest-fetch/.babelrc

But the issue seems to lie within the .meteor/packages/standard-minifiers-js/.1.0.3-modules.8.1a6kq7r.cg82++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/, and no .babelrc within .meteor that I could find.

Trying to debug this by running a local server with --production to minify.

Unfortunately, I don’t see a way to ‘watch’ the ~/.meteor/packages/…/node_modules/ dir for changes, since I’m modifying ~/.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. I have to restart the server each time.

This error is present if I’m running Meteor on Windows 10 on my /mnt/c drive from WSL1/Ubuntu, but if I run with the repo on /home/… instead, I get different errors

@fredmaiaarantes OK is that uglify-js is looking at some ES6 code and getting sad. I had to spew the surrounding lines for context since there was no valid filename there, and it didn’t like ‘class EventDispatcher’ from three.js, which I include in my package.json:

                "three": "^0.134.0",

and in npm-shrinkwrap.json

"three": {
    "version": "0.134.0",
    "resolved": "https://registry.npmjs.org/three/-/three-0.134.0.tgz",
    "integrity": "sha512-LbBerg7GaSPjYtTOnu41AMp7tV6efUNR3p4Wk5NzkSsNTBuA5mDGOfwwZL1jhhVMLx9V20HolIUo0+U3AXehbg=="
},

I searched and found there are meteor issues that have been closed around the topic of uglify choking on es6 code since 2016. I don’t know what issue is, but I removed standard-minifiers-js, which is really not at all what I’d like to do. I’ll try alternatives to standard-minifiers-js tomorrow as I would rather not deploy unminified code to a public production environment.

Hey @drone1, not sure if you have done it already but could you open an issue in our Github? So our team can have a better look at it.

Thanks!

2 Likes

Done, thanks.

3 Likes

Solved, by the way. Check the GitHub issue for details if you’re interested.

1 Like