生产的Ember版本失败了 - 意外的角色'#' ...我怎样才能找到它?

时间:2015-03-11 01:48:29

标签: ember.js ember-cli

当我ember buildember server时,没有问题。

当我尝试ember build --environment=production时,我明白了:

version: 0.2.0
Build failed.
Unexpected character '#'
Error
    at new JS_Parse_Error (APP_FOLDER/node_modules/ember-cli-uglify/node_modules/broccoli-uglify-sourcemap/node_modules/uglify-js/lib/parse.js:196:18)
    at js_error (APP_FOLDER/node_modules/ember-cli-uglify/node_modules/broccoli-uglify-sourcemap/node_modules/uglify-js/lib/parse.js:204:11)
    at parse_error (APP_FOLDER/node_modules/ember-cli-uglify/node_modules/broccoli-uglify-sourcemap/node_modules/uglify-js/lib/parse.js:313:55)
    at Object.next_token [as input] (APP_FOLDER/node_modules/ember-cli-uglify/node_modules/broccoli-uglify-sourcemap/node_modules/uglify-js/lib/parse.js:561:9)
    at next (APP_FOLDER/node_modules/ember-cli-uglify/node_modules/broccoli-uglify-sourcemap/node_modules/uglify-js/lib/parse.js:660:25)
    at Object.parse (APP_FOLDER/node_modules/ember-cli-uglify/node_modules/broccoli-uglify-sourcemap/node_modules/uglify-js/lib/parse.js:646:15)
    at APP_FOLDER/node_modules/ember-cli-uglify/node_modules/broccoli-uglify-sourcemap/node_modules/uglify-js/tools/node.js:82:33
    at Array.forEach (native)
    at Object.exports.minify (APP_FOLDER/node_modules/ember-cli-uglify/node_modules/broccoli-uglify-sourcemap/node_modules/uglify-js/tools/node.js:77:15)
    at UglifyWriter.processFile (APP_FOLDER/node_modules/ember-cli-uglify/node_modules/broccoli-uglify-sourcemap/index.js:98:25)

如何找到这个意外#的位置?

0 个答案:

没有答案