Deployment Issue on METEOR@1.6.1


#1

Hi Guys,

Just in case someone encountered this previously. We upgraded our meteor to 1.6.1 and so far it works fine on development server, but when we tried to push it to live using the DEPLOY_HOSTNAME command we got a strange error below.

Errors prevented deploying:
While minifying app code:                     

/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-plugin-minify-builtins/lib/index.js:245:63:
Cannot read property 'isProgram' of null while minifying app/app.js
at
/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-plugin-minify-builtins/lib/index.js:245:63
at NodePath.getDeepestCommonAncestorFrom
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/ancestry.js:147:14)
at getSegmentedSubPaths
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-plugin-minify-builtins/lib/index.js:238:12)
at BuiltInReplacer.replace
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-plugin-minify-builtins/lib/index.js:101:31)
at BuiltInReplacer.run
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-plugin-minify-builtins/lib/index.js:34:14)
at PluginPass.Program
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-plugin-minify-builtins/lib/index.js:194:25)
at newFn
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/visitors.js:223:21)
at NodePath._call
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/context.js:64:19)
at NodePath.call
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/context.js:38:17)
at NodePath.visit
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/context.js:99:12)
at TraversalContext.visitQueue
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:139:18)
at TraversalContext.visitSingle
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:98:19)
at TraversalContext.visit
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:180:19)
at Function.traverse.node
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/index.js:76:17)
at traverse
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/index.js:46:12)
at transformFile
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transformation/index.js:107:27)
at runSync
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transformation/index.js:35:3)
at transformFromAstSync
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transform-ast-sync.js:16:38)
at Object.transformFromAst
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transform-ast.js:20:68)
at Object.minify
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/index.js:100:33)
at Object.minify (packages/babel-compiler.js:60:29)
at meteorJsMinify (packages/minifier-js.js:56:27)
at files.forEach.file (packages/minifyStdJS/plugin/minify-js.js:126:20)
at Array.forEach (<anonymous>)
at MeteorBabelMinifier.processFilesForBundle (packages/minifyStdJS/plugin/minify-js.js:118:9)

I’m not sure the cause of the error because as I’ve said it works fine on our development server (on C9).

ANd here are my pcakages

# 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.3.0             # Packages every Meteor app needs to have

cultofcoders:redis-oplog
disable-oplog@1.0.7

mobile-experience@1.0.5        # Packages for a great mobile UX
mongo@1.4.2                    # 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
jquery@1.11.10                 # Helpful client-side library
tracker@1.1.3                  # Meteor's client-side reactive programming library

standard-minifier-js@2.3.1     # JS minifier run for production mode
es5-shim@4.7.0                # ECMAScript 5 compatibility for older browsers.
ecmascript@0.10.0               # Enable ECMAScript2015+ syntax in app code
shell-server@0.3.1             # Server-side component of the `meteor shell` command

accounts-password@1.5.0
agnito:simptip
aldeed:collection2
anti:i18n
arunoda:npm
ayue:recaptcha
blaze
cfs:filesystem
cfs:standard-packages
check@1.3.0
chfritz:easycron
ejson@1.1.0
email@1.2.3
gadicohen:headers
gwendall:auth-client-callbacks
http@1.4.0
iron:router
less@2.7.11
logging@1.1.19
momentjs:moment
mrt:inputmask
mrt:moment
nekoanz:aws-sdk
nekoanz:contactform
ovcharik:alertify
pascoual:pdfkit
random@1.1.0
reload@1.2.0
sandelld:paypal
session@1.1.7
simple:rest
simple:rest-accounts-password
spacebars
standard-minifiers@1.1.0
underscore@1.0.10
twbs:bootstrap
ian:accounts-ui-bootstrap-3
dynamic-import@0.3.0
mdg:seo
okgrow:analytics
ostrio:iron-router-meta
gwendall:body-events

THanks in advance for the help.


#2

Anybody here for this? :slight_smile:


#3

Here’s the logs with verbose, also I already remove all the packages of meteor but still I got an error.

Local package version is up-to-date: accounts-base@1.4.2
Local package version is up-to-date: accounts-password@1.5.1
Local package version is up-to-date: aldeed:collection2@2.10.0
Local package version is up-to-date: aldeed:collection2-core@1.2.0
Local package version is up-to-date: aldeed:schema-deny@1.1.0
Local package version is up-to-date: aldeed:schema-index@1.1.1
Local package version is up-to-date: aldeed:simple-schema@1.5.4
Local package version is up-to-date: allow-deny@1.1.0
Local package version is up-to-date: autoupdate@1.4.0
Local package version is up-to-date: babel-compiler@7.0.5
Local package version is up-to-date: babel-runtime@1.2.2
Local package version is up-to-date: base64@1.0.11
Local package version is up-to-date: binary-heap@1.0.10
Local package version is up-to-date: boilerplate-generator@1.4.0
Local package version is up-to-date: callback-hook@1.1.0
Local package version is up-to-date: check@1.3.1
Local package version is up-to-date: ddp@1.4.0
Local package version is up-to-date: ddp-client@2.3.2
Local package version is up-to-date: ddp-common@1.4.0
Local package version is up-to-date: ddp-rate-limiter@1.0.7
Local package version is up-to-date: ddp-server@2.1.2
Local package version is up-to-date: diff-sequence@1.1.0
Local package version is up-to-date: dynamic-import@0.3.0
Local package version is up-to-date: ecmascript@0.10.5
Local package version is up-to-date: ecmascript-runtime@0.5.0
Local package version is up-to-date: ecmascript-runtime-client@0.6.2
Local package version is up-to-date: ecmascript-runtime-server@0.5.0
Local package version is up-to-date: ejson@1.1.0
Local package version is up-to-date: email@1.2.3
Local package version is up-to-date: es5-shim@4.7.3
Local package version is up-to-date: geojson-utils@1.0.10
Local package version is up-to-date: hot-code-push@1.0.4
Local package version is up-to-date: http@1.4.0
Local package version is up-to-date: id-map@1.1.0
Local package version is up-to-date: livedata@1.0.18
Local package version is up-to-date: localstorage@1.2.0
Local package version is up-to-date: logging@1.1.20
Local package version is up-to-date: mdg:validation-error@0.5.1
Local package version is up-to-date: meteor@1.8.4
Local package version is up-to-date: meteor-base@1.3.0
Local package version is up-to-date: minifier-css@1.3.1
Local package version is up-to-date: minifier-js@2.3.3
Local package version is up-to-date: minimongo@1.4.3
Local package version is up-to-date: modules@0.11.5
Local package version is up-to-date: modules-runtime@0.9.2
Local package version is up-to-date: mongo@1.4.5
Local package version is up-to-date: mongo-dev-server@1.1.0
Local package version is up-to-date: mongo-id@1.0.7
Local package version is up-to-date: npm-bcrypt@0.9.3
Local package version is up-to-date: npm-mongo@2.2.34
Local package version is up-to-date: ordered-dict@1.1.0
Local package version is up-to-date: promise@0.10.2
Local package version is up-to-date: raix:eventemitter@0.1.3
Local package version is up-to-date: random@1.1.0
Local package version is up-to-date: rate-limit@1.0.9
Local package version is up-to-date: reactive-var@1.0.11
Local package version is up-to-date: reload@1.2.0
Local package version is up-to-date: retry@1.1.0
Local package version is up-to-date: routepolicy@1.0.13
Local package version is up-to-date: server-render@0.3.0
Local package version is up-to-date: service-configuration@1.0.11
Local package version is up-to-date: sha@1.0.9
Local package version is up-to-date: shim-common@0.1.0
Local package version is up-to-date: socket-stream-client@0.1.0
Local package version is up-to-date: srp@1.0.10
Local package version is up-to-date: standard-minifier-css@1.4.1
Local package version is up-to-date: standard-minifier-js@2.3.2
Local package version is up-to-date: tracker@1.1.3
Local package version is up-to-date: underscore@1.0.10
Local package version is up-to-date: url@1.2.0
Local package version is up-to-date: webapp@1.5.0
Local package version is up-to-date: webapp-hashing@1.0.9
=> Errors prevented startup:

While minifying app code:

/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-plugin-minify-builtins/lib/index.js:245:63:
Cannot read property ‘isProgram’ of null while minifying app/app.js
at
/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-plugin-minify-builtins/lib/index.js:245:63
at NodePath.getDeepestCommonAncestorFrom
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/ancestry.js:147:14)
at getSegmentedSubPaths
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-plugin-minify-builtins/lib/index.js:238:12)
at BuiltInReplacer.replace
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-plugin-minify-builtins/lib/index.js:101:31)
at BuiltInReplacer.run
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-plugin-minify-builtins/lib/index.js:34:14)
at PluginPass.Program
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-plugin-minify-builtins/lib/index.js:194:25)
at newFn
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/visitors.js:223:21)
at NodePath._call
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/context.js:64:19)
at NodePath.call
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/context.js:38:17)
at NodePath.visit
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/path/context.js:99:12)
at TraversalContext.visitQueue
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:139:18)
at TraversalContext.visitSingle
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:98:19)
at TraversalContext.visit
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/context.js:180:19)
at Function.traverse.node
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/index.js:76:17)
at traverse
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/traverse/lib/index.js:46:12)
at transformFile
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transformation/index.js:107:27)
at runSync
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transformation/index.js:35:3)
at transformFromAstSync
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transform-ast-sync.js:16:38)
at Object.transformFromAst
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transform-ast.js:20:68)
at Object.minify
(/home/ubuntu/.meteor/packages/standard-minifier-js/.2.3.2.i349u1.z7fon++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/index.js:100:33)
at Object.minify (packages/babel-compiler.js:60:29)
at meteorJsMinify (packages/minifier-js.js:56:27)
at files.forEach.file (packages/minifyStdJS/plugin/minify-js.js:126:20)
at Array.forEach ()
at MeteorBabelMinifier.processFilesForBundle (packages/minifyStdJS/plugin/minify-js.js:118:9)


#4

This can have so many sources of error as you can read here:



In my case the reason was an npm package, that included several packages that somehow clashed with the minifier packages of Meteor. After I removed the package my build came back to normal.

Check your npm packages if there are any with dependencies to uglify-js or babel-minify or similar packages and try to remove them or change versions.

Good news is that there is already some solution in staging.