Error updating to 1.6.01 -> 1.6.1: More Upgrade Errors [Parked - conflict babel7/mobx]


#1

Hi,

I’m trying to update to 1.6.0.1 -> 1.6.1, but it seems to be breaking. Rolling back (i just cleared changes) is not working either.

tbanerjee@tbanerjee:~/workspace/meteor/app1$ meteor npm start

> q6a@1.0.0 start /home/tbanerjee/workspace/meteor/app1
> meteor --settings settings-development.json

[[[[[ ~/workspace/meteor/app1 ]]]]]           

=> Started proxy.                             
Warning: unable to resolve "env" in presets of /home/tbanerjee/workspace/meteor/app1/.babelrc
Warning: unable to resolve "transform-decorators-legacy" in plugins of /home/tbanerjee/workspace/meteor/app1/.babelrc
=> Meteor 1.6.1 is available. Update this project with 'meteor update'.
=> Started MongoDB.                           
I20180223-11:29:09.522(11)? fixtureEntityId: Fg26SjynnZanBSZ4q
I20180223-11:29:09.539(11)? fixtureUserId: Q2uB8SbZAvgdBsSiB
=> Started your app.

=> App running at: http://localhost:3000/

Any ideas why this might be the case? I understand the move to the new babel, but why is rolling back failing??

(A) My package.json file

{
  "name": "",
  "version": "1.0.0",
  "description": "",
  "scripts": {
    "start": "meteor --settings settings-development.json",
    "test": "meteor test --driver-package practicalmeteor:mocha --port 5000 --settings settings-development.json",
    "chimp-watch": "chimp --ddp=http://localhost:3000 --watch --mocha --path=tests",
    "chimp-test": "chimp --ddp=http://localhost:3000 --mocha --path=tests",
    "production": ""
  },
  "devDependencies": {
    "babel-eslint": "^7.0.0",
    "babel-plugin-transform-class-properties": "^6.11.5",
    "babel-plugin-transform-decorators-legacy": "^1.3.4",
    "babel-plugin-transform-runtime": "^6.23.0",
    "babel-polyfill": "^6.23.0",
    "babel-preset-env": "^1.6.0",
    "chimp": "^0.41.2",
    "eslint": "^3.8.1",
    "eslint-plugin-meteor": "^4.0.1",
    "eslint-plugin-react": "^6.4.1",
    "webpack": "^3.4.1"
  },
  "dependencies": {
    "babel-runtime": "^6.25.0",
    "bcrypt": "^1.0.3",
    "draft-js": "^0.10.3",
    "draftjs-to-html": "^0.7.5",
    "draftjs-to-markdown": "^0.4.4",
    "file-saver": "^1.3.3",
    "isemail": "^2.2.1",
    "jwt-simple": "^0.5.1",
    "material-ui": "^0.18.7",
    "media-typer": "^0.3.0",
    "meteor-node-stubs": "^0.2.5",
    "mobx": "^3.2.1",
    "mobx-react": "^4.2.2",
    "prop-types": "^15.5.3",
    "react": "^15.5.2",
    "react-ace": "^5.0.1",
    "react-addons-pure-render-mixin": "^15.2.1",
    "react-dom": "^15.5.2",
    "react-draft-wysiwyg": "^1.12.9",
    "react-komposer": "^1.13.1",
    "react-router": "^3.0.0",
    "react-tap-event-plugin": "^2.0.1"
  }
}

(B) my .babelrc

{
  "presets": ["env"],
  "plugins": [
    "transform-decorators-legacy",
    "transform-class-properties",
    "transform-runtime"
  ]
}

© 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.2.0             # Packages every Meteor app needs to have
mobile-experience@1.0.5       # Packages for a great mobile UX
mongo@1.3.1                   # The database Meteor supports right now
reactive-var@1.0.11            # Reactive variable for tracker
session@1.1.7
tracker@1.1.3                 # Meteor's client-side reactive programming library

standard-minifier-css@1.3.5   # CSS minifier run for production mode
es5-shim@4.6.15                # ECMAScript 5 compatibility for older browsers.
ecmascript@0.9.0              # Enable ECMAScript2015+ syntax in app code

accounts-password@1.5.0
accounts-base@1.4.0
check@1.2.5
audit-argument-checks@1.0.7
browser-policy@1.1.0

aldeed:collection2
alanning:roles
static-html@1.1.12_1
xolvio:cleaner
practicalmeteor:mocha
xolvio:backdoor
mdg:validated-method
dburles:factory@1.0.0
ddp-rate-limiter@1.0.7
shell-server@0.3.0
http@1.3.0
nimble:restivus
peerlibrary:fs
dynamic-import@0.2.0
service-configuration@1.0.11
abernix:standard-minifier-js

Any assist would be appreciated. I’m trying to upgrade following the blog post but any pointers would be appreciated.

Tat


#2

Using: meteor npm install again fixed the issue. No idea what happened? Will try to upgrade to 1.6.1 again.

Can someone please suggest a guide on exactly what should be in a .gitignore file so that everything important is saved? Currently my .gitignore only has node_modules in it.


#3

Ok - so for anyone else who is here - apparently this is due to a conflict between babel7 and mobx. Please see here: https://github.com/mobxjs/mobx/issues/1345

The stacktrace from the upgrade following notes (https://blog.meteor.com/announcing-meteor-1-6-1-50aad71da4e6), just in case useful to someone else:

tbanerjee@tbanerjee:~/workspace/meteor/app1$ meteor npm start

> q6a@1.0.0 start /home/tbanerjee/workspace/meteor/app1
> meteor --settings settings-development.json

[[[[[ ~/workspace/meteor/app1 ]]]]]           

=> Started proxy.                             
=> Errors prevented startup:                  
   
   While processing files with ecmascript (for target web.browser):

   /home/tbanerjee/workspace/meteor/app1/node_modules/babel-plugin-transform-runtime/lib/index.js:31:12:
   this.setDynamic is not a function
   at PluginPass.pre
   (/home/tbanerjee/workspace/meteor/app1/node_modules/babel-plugin-transform-runtime/lib/index.js:31:12)
   at transformFile
   (/home/tbanerjee/.meteor/packages/ecmascript/.0.10.5.1p9oa7a.3w8j++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transformation/index.js:97:25)
   at runSync
   (/home/tbanerjee/.meteor/packages/ecmascript/.0.10.5.1p9oa7a.3w8j++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transformation/index.js:35:3)
   at transformFromAstSync
   (/home/tbanerjee/.meteor/packages/ecmascript/.0.10.5.1p9oa7a.3w8j++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transform-ast-sync.js:16:38)
   at Object.transformFromAst
   (/home/tbanerjee/.meteor/packages/ecmascript/.0.10.5.1p9oa7a.3w8j++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transform-ast.js:20:68)
   at transform
   (/home/tbanerjee/.meteor/packages/ecmascript/.0.10.5.1p9oa7a.3w8j++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/index.js:71:30)
   at compile
   (/home/tbanerjee/.meteor/packages/ecmascript/.0.10.5.1p9oa7a.3w8j++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/index.js:82:14)
   at Cache.Cp.get
   (/home/tbanerjee/.meteor/packages/ecmascript/.0.10.5.1p9oa7a.3w8j++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/cache.js:101:26)
   at Object.compile
   (/home/tbanerjee/.meteor/packages/ecmascript/.0.10.5.1p9oa7a.3w8j++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/index.js:46:23)
   at Object.compile (packages/babel-compiler.js:51:29)
   at packages/babel-compiler.js:186:22
   at Function.time (/tools/tool-env/profile.js:305:10)
   at profile (packages/babel-compiler.js:229:20)
   at BabelCompiler.BCp.processOneFileForTarget
   (packages/babel-compiler.js:185:20)
   at BabelCompiler.<anonymous> (packages/babel-compiler.js:111:26)
   at Array.forEach (<anonymous>)
   at BabelCompiler.BCp.processFilesForTarget
   (packages/babel-compiler.js:110:14)
   
   
   While processing files with ecmascript (for target os.linux.x86_64):

   /home/tbanerjee/workspace/meteor/app1/node_modules/babel-plugin-transform-runtime/lib/index.js:31:12:
   this.setDynamic is not a function
   at PluginPass.pre
   (/home/tbanerjee/workspace/meteor/app1/node_modules/babel-plugin-transform-runtime/lib/index.js:31:12)
   at transformFile
   (/home/tbanerjee/.meteor/packages/ecmascript/.0.10.5.1p9oa7a.3w8j++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transformation/index.js:97:25)
   at runSync
   (/home/tbanerjee/.meteor/packages/ecmascript/.0.10.5.1p9oa7a.3w8j++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transformation/index.js:35:3)
   at transformFromAstSync
   (/home/tbanerjee/.meteor/packages/ecmascript/.0.10.5.1p9oa7a.3w8j++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transform-ast-sync.js:16:38)
   at Object.transformFromAst
   (/home/tbanerjee/.meteor/packages/ecmascript/.0.10.5.1p9oa7a.3w8j++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/@babel/core/lib/transform-ast.js:20:68)
   at transform
   (/home/tbanerjee/.meteor/packages/ecmascript/.0.10.5.1p9oa7a.3w8j++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/index.js:71:30)
   at compile
   (/home/tbanerjee/.meteor/packages/ecmascript/.0.10.5.1p9oa7a.3w8j++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/index.js:82:14)
   at Cache.Cp.get
   (/home/tbanerjee/.meteor/packages/ecmascript/.0.10.5.1p9oa7a.3w8j++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/cache.js:101:26)
   at Object.compile
   (/home/tbanerjee/.meteor/packages/ecmascript/.0.10.5.1p9oa7a.3w8j++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/index.js:46:23)
   at Object.compile (packages/babel-compiler.js:51:29)
   at packages/babel-compiler.js:186:22
   at Function.time (/tools/tool-env/profile.js:305:10)
   at profile (packages/babel-compiler.js:229:20)
   at BabelCompiler.BCp.processOneFileForTarget
   (packages/babel-compiler.js:185:20)
   at BabelCompiler.<anonymous> (packages/babel-compiler.js:111:26)
   at Array.forEach (<anonymous>)
   at BabelCompiler.BCp.processFilesForTarget
   (packages/babel-compiler.js:110:14)
   
   
=> Your application has errors. Waiting for file change.
=> Started MongoDB.