这是啥错误呀,自查不出来。哎.......

来源:4-2 通用JS工具类封装(网络数据请求功能)

慕九州0507976

2018-09-17

bxzdeMacBook-Air:bxz-fe bxz$ npm run dev

bxz-fe@1.0.0 dev /Users/bxz/bxz/doc/bxz-fe
WEBPACK_ENV=dev webpack-dev-server --inline --port 8088

dev
http://localhost:8088/
webpack result is served from /dist
content is served from /Users/bxz/bxz/doc/bxz-fe
Hash: f13bbc28aae9dd676e84
Version: webpack 1.15.0
Time: 1497ms
Asset Size Chunks Chunk Names
js/base.js 250 kB 0 [emitted] common
js/index.js 545 bytes 1 [emitted] index
js/login.js 653 bytes 2 [emitted] login
view/index.html 404 bytes [emitted]
view/login.html 390 bytes [emitted]
chunk {0} js/base.js (common) 229 kB [rendered]
[0] multi common 64 bytes {0} [built]
[1] (webpack)-dev-server/client?http://localhost:8088 4.16 kB {0} [built]
[2] ./~/url/url.js 23.3 kB {0} [built]
[3] .//url//punycode/punycode.js 14.6 kB {0} [built]
[4] (webpack)/buildin/module.js 251 bytes {0} [built]
[5] ./~/url/util.js 314 bytes {0} [built]
[6] ./~/querystring/index.js 127 bytes {0} [built]
[7] ./~/querystring/decode.js 2.4 kB {0} [built]
[8] ./~/querystring/encode.js 2.09 kB {0} [built]
[9] ./~/strip-ansi/index.js 161 bytes {0} [built]
[10] ./~/ansi-regex/index.js 135 bytes {0} [built]
[11] (webpack)-dev-server/client/socket.js 897 bytes {0} [built]
[12] ./~/sockjs-client/lib/entry.js 244 bytes {0} [built]
[13] ./~/sockjs-client/lib/transport-list.js 613 bytes {0} [built]
[14] ./~/sockjs-client/lib/transport/websocket.js 2.72 kB {0} [built]
[15] ./~/process/browser.js 5.42 kB {0} [built]
[16] ./~/sockjs-client/lib/utils/event.js 2 kB {0} [built]
[17] ./~/sockjs-client/lib/utils/random.js 746 bytes {0} [built]
[18] ./~/sockjs-client/lib/utils/browser-crypto.js 438 bytes {0} [built]
[19] ./~/sockjs-client/lib/utils/url.js 975 bytes {0} [built]
[20] ./~/url-parse/index.js 12 kB {0} [built]
[21] ./~/requires-port/index.js 753 bytes {0} [built]
[22] ./~/querystringify/index.js 1.58 kB {0} [built]
[23] ./~/debug/src/browser.js 4.73 kB {0} [built]
[24] ./~/debug/src/debug.js 4.39 kB {0} [built]
[25] ./~/ms/index.js 2.76 kB {0} [built]
[26] ./~/inherits/inherits_browser.js 672 bytes {0} [built]
[27] ./~/sockjs-client/lib/event/emitter.js 1.27 kB {0} [built]
[28] ./~/sockjs-client/lib/event/eventtarget.js 1.85 kB {0} [built]
[29] ./~/sockjs-client/lib/transport/browser/websocket.js 210 bytes {0} [built]
[30] ./~/sockjs-client/lib/transport/xhr-streaming.js 1.25 kB {0} [built]
[31] ./~/sockjs-client/lib/transport/lib/ajax-based.js 1.31 kB {0} [built]
[32] ./~/sockjs-client/lib/transport/lib/sender-receiver.js 1.18 kB {0} [built]
[33] ./~/sockjs-client/lib/transport/lib/buffered-sender.js 2.3 kB {0} [built]
[34] ./~/sockjs-client/lib/transport/lib/polling.js 1.32 kB {0} [built]
[35] ./~/sockjs-client/lib/transport/receiver/xhr.js 1.58 kB {0} [built]
[36] ./~/sockjs-client/lib/transport/sender/xhr-cors.js 343 bytes {0} [built]
[37] ./~/sockjs-client/lib/transport/browser/abstract-xhr.js 4.8 kB {0} [built]
[38] ./~/sockjs-client/lib/transport/sender/xhr-local.js 352 bytes {0} [built]
[39] ./~/sockjs-client/lib/utils/browser.js 560 bytes {0} [built]
[40] ./~/sockjs-client/lib/transport/xdr-streaming.js 984 bytes {0} [built]
[41] ./~/sockjs-client/lib/transport/sender/xdr.js 2.46 kB {0} [built]
[42] ./~/sockjs-client/lib/transport/eventsource.js 766 bytes {0} [built]
[43] ./~/sockjs-client/lib/transport/receiver/eventsource.js 1.58 kB {0} [built]
[44] ./~/sockjs-client/lib/transport/browser/eventsource.js 37 bytes {0} [built]
[45] ./~/sockjs-client/lib/transport/lib/iframe-wrap.js 981 bytes {0} [built]
[46] ./~/sockjs-client/lib/transport/iframe.js 3.83 kB {0} [built]
[47] ./~/json3/lib/json3.js 43.3 kB {0} [built]
[48] (webpack)/buildin/amd-options.js 43 bytes {0} [built]
[49] ./~/sockjs-client/lib/version.js 26 bytes {0} [built]
[50] ./~/sockjs-client/lib/utils/iframe.js 5.04 kB {0} [built]
[51] ./~/sockjs-client/lib/utils/object.js 532 bytes {0} [built]
[52] ./~/sockjs-client/lib/transport/htmlfile.js 710 bytes {0} [built]
[53] ./~/sockjs-client/lib/transport/receiver/htmlfile.js 2.2 kB {0} [built]
[54] ./~/sockjs-client/lib/transport/xhr-polling.js 894 bytes {0} [built]
[55] ./~/sockjs-client/lib/transport/xdr-polling.js 712 bytes {0} [built]
[56] ./~/sockjs-client/lib/transport/jsonp-polling.js 1.02 kB {0} [built]
[57] ./~/sockjs-client/lib/transport/receiver/jsonp.js 5.57 kB {0} [built]
[58] ./~/sockjs-client/lib/transport/sender/jsonp.js 2.46 kB {0} [built]
[59] ./~/sockjs-client/lib/main.js 12 kB {0} [built]
[60] ./~/sockjs-client/lib/shims.js 17.2 kB {0} [built]
[61] ./~/sockjs-client/lib/utils/escape.js 2.36 kB {0} [built]
[62] ./~/sockjs-client/lib/utils/transport.js 1.35 kB {0} [built]
[63] ./~/sockjs-client/lib/utils/log.js 450 bytes {0} [built]
[64] ./~/sockjs-client/lib/event/event.js 477 bytes {0} [built]
[65] ./~/sockjs-client/lib/location.js 178 bytes {0} [built]
[66] ./~/sockjs-client/lib/event/close.js 295 bytes {0} [built]
[67] ./~/sockjs-client/lib/event/trans-message.js 292 bytes {0} [built]
[68] ./~/sockjs-client/lib/info-receiver.js 2.22 kB {0} [built]
[69] ./~/sockjs-client/lib/transport/sender/xhr-fake.js 456 bytes {0} [built]
[70] ./~/sockjs-client/lib/info-iframe.js 1.52 kB {0} [built]
[71] ./~/sockjs-client/lib/info-iframe-receiver.js 791 bytes {0} [built]
[72] ./~/sockjs-client/lib/info-ajax.js 1.03 kB {0} [built]
[73] ./~/sockjs-client/lib/iframe-bootstrap.js 2.9 kB {0} [built]
[74] ./~/sockjs-client/lib/facade.js 723 bytes {0} [built]
[75] ./src/page/common/index.js 149 bytes {0} [built]
[76] (webpack)-dev-server/client?http://localhost:8088/ 4.16 kB {0} [built]
chunk {1} js/index.js (index) 195 bytes {0} [rendered]
[0] multi index 40 bytes {1} [built]
[77] ./src/page/index/index.js 155 bytes {1} [built] [1 error]
chunk {2} js/login.js (login) 368 bytes {0} [rendered]
[0] multi login 40 bytes {2} [built]
[79] ./src/page/login/index.js 174 bytes {2} [built]
[80] ./src/page/module.js 154 bytes {2} [built]

ERROR in ./src/util/mm.js
Module parse failed: /Users/bxz/bxz/doc/bxz-fe/src/util/mm.js Unexpected token (14:14)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (14:14)
at Parser.pp$4.raise (/Users/bxz/bxz/doc/bxz-fe/node_modules/acorn/dist/acorn.js:2221:15)
at Parser.pp.unexpected (/Users/bxz/bxz/doc/bxz-fe/node_modules/acorn/dist/acorn.js:603:10)
at Parser.pp.expect (/Users/bxz/bxz/doc/bxz-fe/node_modules/acorn/dist/acorn.js:597:28)
at Parser.pp$3.parseObj (/Users/bxz/bxz/doc/bxz-fe/node_modules/acorn/dist/acorn.js:1973:16)
at Parser.pp$3.parseExprAtom (/Users/bxz/bxz/doc/bxz-fe/node_modules/acorn/dist/acorn.js:1805:19)
at Parser.pp$3.parseExprSubscripts (/Users/bxz/bxz/doc/bxz-fe/node_modules/acorn/dist/acorn.js:1715:21)
at Parser.pp$3.parseMaybeUnary (/Users/bxz/bxz/doc/bxz-fe/node_modules/acorn/dist/acorn.js:1692:19)
at Parser.pp$3.parseExprOps (/Users/bxz/bxz/doc/bxz-fe/node_modules/acorn/dist/acorn.js:1637:21)
at Parser.pp$3.parseMaybeConditional (/Users/bxz/bxz/doc/bxz-fe/node_modules/acorn/dist/acorn.js:1620:21)
at Parser.pp$3.parseMaybeAssign (/Users/bxz/bxz/doc/bxz-fe/node_modules/acorn/dist/acorn.js:1597:21)
at Parser.pp$3.parseExprList (/Users/bxz/bxz/doc/bxz-fe/node_modules/acorn/dist/acorn.js:2165:22)
at Parser.pp$3.parseSubscripts (/Users/bxz/bxz/doc/bxz-fe/node_modules/acorn/dist/acorn.js:1741:35)
at Parser.pp$3.parseExprSubscripts (/Users/bxz/bxz/doc/bxz-fe/node_modules/acorn/dist/acorn.js:1718:17)
at Parser.pp$3.parseMaybeUnary (/Users/bxz/bxz/doc/bxz-fe/node_modules/acorn/dist/acorn.js:1692:19)
at Parser.pp$3.parseExprOps (/Users/bxz/bxz/doc/bxz-fe/node_modules/acorn/dist/acorn.js:1637:21)
at Parser.pp$3.parseMaybeConditional (/Users/bxz/bxz/doc/bxz-fe/node_modules/acorn/dist/acorn.js:1620:21)
@ ./src/page/index/index.js 8:10-31
Child html-webpack-plugin for “view/login.html”:
chunk {0} view/login.html 541 kB [rendered]
[0] ./~/html-webpack-plugin/lib/loader.js!./src/view/login.html 590 bytes {0} [built]
[1] ./~/lodash/lodash.js 540 kB {0} [built]
[2] (webpack)/buildin/module.js 251 bytes {0} [built]
Child html-webpack-plugin for “view/index.html”:
chunk {0} view/index.html 541 kB [rendered]
[0] ./~/html-webpack-plugin/lib/loader.js!./src/view/index.html 627 bytes {0} [built]
[1] ./~/lodash/lodash.js 540 kB {0} [built]
[2] (webpack)/buildin/module.js 251 bytes {0} [built]
[3] ./~/html-loader!./src/view/layout/html-head.html 91 bytes {0} [built]
webpack: Failed to compile.

写回答

1回答

mid_one

2018-09-17

mm.js14行有错误

0
2
慕九州0507976
解决了
2018-09-17
共2条回复

真实数据对接 从0开发前后端分离的企业级上线项目

【毕设项目精品】前端实战,对接真实服务端数据,开发完整项目

4262 学习 · 4113 问题

查看课程