Got ArrayExpression error when upgrade from 1.5.2.2 to 1.6


#1

Hi all,
I have upgraded meteor from 1.5.2.2 to 1.6 and I have got the following message:

/home/mai/.meteor/packages/ecmascript/.0.9.0.l8rb8s.l2n4++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-types/lib/definitions/index.js:147:13:
   imports/ui/components/Public.js: Property elements[3] of ArrayExpression expected node to be of a type
   ["null","Expression","SpreadElement"] but instead got undefined
   at validate
   (/home/mai/.meteor/packages/ecmascript/.0.9.0.l8rb8s.l2n4++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-types/lib/definitions/index.js:147:13)
   at validator
   (/home/mai/.meteor/packages/ecmascript/.0.9.0.l8rb8s.l2n4++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-types/lib/definitions/index.js:57:7)
   at Object.validate
   (/home/mai/.meteor/packages/ecmascript/.0.9.0.l8rb8s.l2n4++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-types/lib/definitions/index.js:190:10)
   at validate
   (/home/mai/.meteor/packages/ecmascript/.0.9.0.l8rb8s.l2n4++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/babel-compiler/node_modules/babel-types/lib/index.js:505:9)
   at Object.builder
...
...

The following is Public.js file:

import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Route, Redirect } from 'react-router-dom';

const Public = ({ loggingIn, authenticated, component, ...rest, match, history }) => (
	<Route
		{...rest}
			render={props => (
				!authenticated ?
				(React.createElement(component, { ...props, loggingIn, authenticated })) :
				(<Redirect to="/events" />)
		)}
	/>
);

Public.propTypes = {
	loggingIn: PropTypes.bool.isRequired,
	authenticated: PropTypes.bool.isRequired,
	component: PropTypes.func.isRequired,
	history: PropTypes.object,
	match: PropTypes.object,
};

export default Public;

Please help to fix this problem.