A implantação do Meteor Up falhou, mas o aplicativo funciona bem no desenvolvimento
Estou testando a implantação do meu primeiro aplicativo Meteor e pensei em usar o Meteor Up. Depois de brincar muito, eu consegui corrermup setup
sem erros e tudo parece bem.
No entanto, executandomup deploy
falha:
$ mup deploy
Building App Bundle Locally
Errors prevented bundling:
While minifying app code:
eval at <anonymous>
(/home/yanick/.meteor/packages/standard-minifier-js/.1.2.1.s85ddv++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:1545:18: SyntaxError: Unexpected token: name (Converter)
at new JS_Parse_Error (eval at <anonymous>
(/home/yanick/.meteor/packages/standard-minifier-js/.1.2.1.s85ddv++os+web.browser+web.cordova/plugin.minifyStdJS.os/npm/node_modules/meteor/minifier-js/node_modules/uglify-js/tools/node.js:28:1),
<anonymous>:1545:18) at js_error (eval at <anonymous>
...
O arquivo defeituoso parece ser umConverter.js
, mas esse arquivo não é nada chique e simplesmente exporta algum objeto JSON:
import Converter from 'universal-converter';
export default Converter;
export const DEFAULT_UNIT = 'unit';
export const Units = {
'unit': {
'type': 'unit',
'name': 'unit'
},
'inch': {
'type': 'distance',
'name': 'inch',
'label': 'in'
},
'inch2': {
'type': 'area',
'name': 'square inch',
'label': 'in²'
},
'foot': {
'type': 'distance',
'name': 'foot',
'label': 'ft'
},
'foot2': {
'type': 'area',
'name': 'square foot',
'label': 'ft²'
},
'yard': {
'type': 'distance',
'name': 'yard',
'label': 'yd'
},
'yard2': {
'type': 'area',
'name': 'square yard',
'label': 'yd²'
},
'cm': {
'type': 'distance',
'name': 'centimeter',
'label': 'cm'
},
'm': {
'type': 'distance',
'name': 'meter',
'label': 'm'
},
'g': {
'type': 'mass',
'name': 'gram',
'label': 'g'
},
'kg': {
'type': 'mass',
'name': 'kilogram',
'label': 'kg'
},
'lb' : {
'type': 'mass',
'name': 'pound',
'label': 'lb'
},
'oz': {
'type': 'mass',
'name': 'once [France]',
'label': 'oz'
},
'liter': {
'type': 'volume',
'name': 'liter',
'label': 'L'
},
'gal': {
'type': 'volume',
'name': 'gallon [US, liquid]',
'label': 'Gal'
},
'oz_v': {
'type': 'volume',
'name': 'ounce [UK, liquid]',
'label': 'oz'
}
};
Porque émeteor
está funcionando bem, mas a criação de um pacote do aplicativo falha?
Tentei refatorar meus diretórios de aplicativos,movendo a construção, nada muda. Este comando:meteor build ../output
(onde o caminho está fora da pasta raiz do meu projeto) falha conforme descrito acima.