【发布时间】:2014-10-21 20:21:42
【问题描述】:
我刚刚upgraded an ember-cli app from 0.0.40 to 0.1.2。
在关注upgrade guide 并尽我所能升级所有插件后,转译器似乎对标志文件感到厌烦:
➜ participate-frontend git:(upgrade-cli) ✗ ember build
version: 0.1.2
Build failed.
File: participate-frontend/templates/alert.js
Line 1: Unexpected identifier
Error: Line 1: Unexpected identifier
at throwError (/Users/work/Projects/participate-frontend/node_modules/ember-cli/node_modules/broccoli-es6-concatenator/node_modules/es6-module-transpiler/dist/es6-module-transpiler.js:2579:21)
at throwUnexpected (/Users/work/Projects/participate-frontend/node_modules/ember-cli/node_modules/broccoli-es6-concatenator/node_modules/es6-module-transpiler/dist/es6-module-transpiler.js:2623:13)
at expect (/Users/work/Projects/participate-frontend/node_modules/ember-cli/node_modules/broccoli-es6-concatenator/node_modules/es6-module-transpiler/dist/es6-module-transpiler.js:2650:13)
at parseArrayInitialiser (/Users/work/Projects/participate-frontend/node_modules/ember-cli/node_modules/broccoli-es6-concatenator/node_modules/es6-module-transpiler/dist/es6-module-transpiler.js:2783:21)
at parsePrimaryExpression (/Users/work/Projects/participate-frontend/node_modules/ember-cli/node_modules/broccoli-es6-concatenator/node_modules/es6-module-transpiler/dist/es6-module-transpiler.js:3076:20)
at /Users/work/Projects/participate-frontend/node_modules/ember-cli/node_modules/broccoli-es6-concatenator/node_modules/es6-module-transpiler/dist/es6-module-transpiler.js:5661:38
at trackLeftHandSideExpressionAllowCall (/Users/work/Projects/participate-frontend/node_modules/ember-cli/node_modules/broccoli-es6-concatenator/node_modules/es6-module-transpiler/dist/es6-module-transpiler.js:5563:61)
at parsePostfixExpression (/Users/work/Projects/participate-frontend/node_modules/ember-cli/node_modules/broccoli-es6-concatenator/node_modules/es6-module-transpiler/dist/es6-module-transpiler.js:3214:20)
at /Users/work/Projects/participate-frontend/node_modules/ember-cli/node_modules/broccoli-es6-concatenator/node_modules/es6-module-transpiler/dist/es6-module-transpiler.js:5661:38
at parseUnaryExpression (/Users/work/Projects/participate-frontend/node_modules/ember-cli/node_modules/broccoli-es6-concatenator/node_modules/es6-module-transpiler/dist/es6-module-transpiler.js:3278:16)
关于可能导致此问题的原因或如何调试此问题的任何想法?
【问题讨论】:
-
你安装了ember cli会徽插件吗?
-
是的,broccoli-emblem-compiler 和 ember-cli-emblem
标签: javascript ember.js ember-cli