我正在運行一個Express應用程序,並且正在收到JS_Parse_Error。我無法弄清楚爲什麼。我已經基本評論了我編寫的所有新代碼,但我仍然遇到了錯誤。有沒有辦法找出哪些Javascript行給我的錯誤?如何找到JS_Parse_Error的來源?
Error
at new JS_Parse_Error (/home/charlie/Projects/chat/node_modules/jade/node_modules/with/node_modules/uglify-js/lib/parse.js:196:18)
at js_error (/home/charlie/Projects/chat/node_modules/jade/node_modules/with/node_modules/uglify-js/lib/parse.js:204:11)
at croak (/home/charlie/Projects/chat/node_modules/jade/node_modules/with/node_modules/uglify-js/lib/parse.js:636:9)
at token_error (/home/charlie/Projects/chat/node_modules/jade/node_modules/with/node_modules/uglify-js/lib/parse.js:644:9)
at expect_token (/home/charlie/Projects/chat/node_modules/jade/node_modules/with/node_modules/uglify-js/lib/parse.js:657:9)
at expect (/home/charlie/Projects/chat/node_modules/jade/node_modules/with/node_modules/uglify-js/lib/parse.js:660:36)
at expr_atom (/home/charlie/Projects/chat/node_modules/jade/node_modules/with/node_modules/uglify-js/lib/parse.js:1112:17)
at maybe_unary (/home/charlie/Projects/chat/node_modules/jade/node_modules/with/node_modules/uglify-js/lib/parse.js:1287:19)
at expr_ops (/home/charlie/Projects/chat/node_modules/jade/node_modules/with/node_modules/uglify-js/lib/parse.js:1322:24)
at maybe_conditional (/home/charlie/Projects/chat/node_modules/jade/node_modules/with/node_modules/uglify-js/lib/parse.js:1327:20)
你可以發佈相關代碼以及堆棧跟蹤嗎? –
問題是我不確定相關代碼是什麼。我有5個Javascript文件。即使我刪除了所有這些文件,我仍然會收到錯誤消息。有沒有辦法查明哪個文件給我錯誤? – egidra
我很肯定有關於'JS_Parse_Error'的更多信息。你能明白嗎? – Bergi