Problem Description
Create a normal project with vue-cli3 and then access it with a browser
vue create hello-world
SCRIPT1002: Syntax error
Click on the error location
/***/ "./node_modules/sockjs-client/dist/sockjs.js":
/*!***************************************************!*\
!*** ./node_modules/sockjs-client/dist/sockjs.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
Network Solutions
This solution doesn't work at all, and I don't know who tested it. My own test can't solve the actual problem at all.
solve it correctly
Lower the version of sockjs-client
, his dependencies are described in package-lock.json
in it, if this happens, your version may be above the version given below me
npm i sockjs-client@1.5.1 -D
After the updated version is complete, recompile the project
can be solved
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。