Tôi đang chạy ứng dụng Express và tôi đang nhận được JS_Parse_Error. Tôi không thể tìm ra lý do tại sao. Tôi đã cơ bản nhận xét tất cả các mã mới mà tôi đã viết, nhưng tôi vẫn nhận được lỗi. Có cách nào để tìm ra những gì dòng Javascript là cho tôi lỗi?Cách tìm nguồn 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)
Bạn có thể đăng mã có liên quan cùng với dấu vết ngăn xếp không? –
Vấn đề là tôi không chắc chắn mã có liên quan là gì. Tôi có 5 tệp Javascript. Ngay cả khi tôi xóa tất cả chúng, tôi vẫn gặp lỗi. Có cách nào để xác định những gì tập tin cho tôi lỗi? – egidra
Tôi chắc chắn có thêm thông tin về 'JS_Parse_Error' về lý do. Bạn có thể nhận được điều đó không? – Bergi