Задать вопрос
@crash08

EmberJS Build Error. Как решить проблему?

root@server:~/super-rentals# ember build
WARNING: Node v9.3.0 has currently not been tested against Ember CLI and may result in unexpected behaviour.
Could not start watchman; falling back to NodeWatcher for file system events.
Visit ember-cli.com/user-guide/#watchman for more info.
⠹ Building{ Error: socket hang up
at TLSSocket.onConnectEnd (_tls_wrap.js:1079:19)
at Object.onceWrapper (events.js:254:19)
at TLSSocket.emit (events.js:164:20)
at endReadableNT (_stream_readable.js:1062:12)
at process._tickCallback (internal/process/next_tick.js:152:19)
code: 'ECONNRESET',
path: null,
host: 'google-analytics.com',
port: 443,
localAddress: undefined }
Build failed.
File: ember-cli-mirage/utils/inflector.js
The Broccoli Plugin: [broccoli-persistent-filter:Babel] failed with:
SyntaxError: ember-cli-mirage/utils/inflector.js: Unexpected token (4:14)
export { singularize, pluralize } from 'ember-inflector';

export { Ember.String.capitalize as capitalize, Ember.String.camelize as camelize, Ember.String.dasherize as dasherize, Ember.String.underscore as underscore };
at Parser.pp.raise (/root/super-rentals/node_modules/babylon/lib/parser/location.js:24:13)
at Parser.pp.unexpected (/root/super-rentals/node_modules/babylon/lib/parser/util.js:82:8)
at Parser.pp.expect (/root/super-rentals/node_modules/babylon/lib/parser/util.js:76:33)
at Parser.pp.parseExportSpecifiers (/root/super-rentals/node_modules/babylon/lib/parser/statement.js:772:12)
at Parser.pp.parseExport (/root/super-rentals/node_modules/babylon/lib/parser/statement.js:701:28)
at Parser.parseExport (/root/super-rentals/node_modules/babylon/lib/plugins/flow.js:713:20)
at Parser.pp.parseStatement (/root/super-rentals/node_modules/babylon/lib/parser/statement.js:115:90)
at Parser.parseStatement (/root/super-rentals/node_modules/babylon/lib/plugins/flow.js:655:22)
at Parser.pp.parseTopLevel (/root/super-rentals/node_modules/babylon/lib/parser/statement.js:30:21)
at Parser.parse (/root/super-rentals/node_modules/babylon/lib/parser/index.js:70:17)

The broccoli plugin was instantiated at:
at Babel.Plugin (/root/super-rentals/node_modules/broccoli-plugin/index.js:7:31)
at Babel.Filter [as constructor] (/root/super-rentals/node_modules/broccoli-persistent-filter/index.js:64:10)
at new Babel (/root/super-rentals/node_modules/broccoli-babel-transpiler/index.js:37:10)
at EmberApp._addonTree (/root/super-rentals/node_modules/ember-cli/lib/broccoli/ember-app.js:910:29)
at EmberApp._processedVendorTree (/root/super-rentals/node_modules/ember-cli/lib/broccoli/ember-app.js:944:20)
at EmberApp._processedExternalTree (/root/super-rentals/node_modules/ember-cli/lib/broccoli/ember-app.js:975:21)
at EmberApp.appAndDependencies (/root/super-rentals/node_modules/ember-cli/lib/broccoli/ember-app.js:1071:30)
at EmberApp.javascript (/root/super-rentals/node_modules/ember-cli/lib/broccoli/ember-app.js:1201:34)
at EmberApp.toArray (/root/super-rentals/node_modules/ember-cli/lib/broccoli/ember-app.js:1606:10)
at EmberApp.toTree (/root/super-rentals/node_modules/ember-cli/lib/broccoli/ember-app.js:1628:30)


Была только одна ошибка: socket hang up, но сервер и с ней запускался.
Ошибки появились после установки дополнений ember-cli-tutorial-style и ember-cli-mirage.
  • Вопрос задан
  • 191 просмотр
Подписаться 1 Простой Комментировать
Пригласить эксперта
Ответы на вопрос 1
Kaer_Morchen
@Kaer_Morchen
Разрабатываю web-приложения.
Попробуйте обновить ember-cli-babel до последней версии
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы