ERROR in chunk chunk-03b6 static/js/chunk-03b6.0c3f4b7a.js C:\Users\sun\Documents\Tencent Files\779959311\FileRecv\vue-admin\vue-admin\node_modules\babel-loader\lib\index.js!C:\Users\sun\Documents\Tencent Files\779959311\FileRecv\vue-admin\vue-admin\src\api\userTable.js 96b10d4b12ee7b5260b9ae8d337b3b14 Unexpected token (9:15) | // 创建axios实例 | var service = __WEBPACK_MODULE_REFERENCE__1_64656661756c74__.create({ | baseURL: http://localhost:8085, // api 的 base_url | timeout: 5000 // 请求超时时间 | }); Build failed with errors.
时间: 2023-07-12 15:02:41 浏览: 186
这个错误提示是因为在`userTable.js`文件的第9行第15列有一个意外的标记,可能是由于您的代码中有一些语法错误导致的。您可以尝试按照以下步骤来解决这个问题:
1. 检查`userTable.js`文件中的代码,看看是否有拼写错误、缺少括号、分号等语法问题。
2. 确认您的代码是否使用了ES6的语法,例如箭头函数、模板字符串等。如果是的话,您需要确保您的代码能够被Babel正确转换。
3. 检查`userTable.js`文件中的第9行第15列的代码,看看是否有遗漏或多余的符号。如果有,您可以尝试删除或添加这些符号以解决问题。
希望这些提示可以帮助您解决问题。如果问题仍然存在,请提供更多的信息和代码段,以便我更好地帮助您。
相关问题
vue 项目使用 element-ui 报错,app.js:209 Uncaught TypeError: Cannot read property 'prototype' of undefined at eval (types.js?8ad0:39) at Object../node_modules/element-ui/lib/utils/types.js (chunk-vendors.js:581) at __webpack_require__ (app.js:206) at fn (app.js:478) at eval (util.js?40a4:19) at Object../node_modules/element-ui/lib/utils/util.js (chunk-vendors.js:592) at __webpack_require__ (app.js:206) at fn (app.js:478) at eval (format.js?5a92:49) at Object../node_modules/element-ui/lib/locale/format.js (chunk-vendors.js:237)
这个错误通常是由于 Element-UI 版本与 Vue 版本不兼容导致的。你可以尝试以下几个解决方法:
1. 确认 Element-UI 和 Vue 的版本是否匹配,可以查看 Element-UI 官方文档中的版本兼容性表格。
2. 尝试重新安装 Element-UI,可以使用以下命令:
```
npm uninstall element-ui
npm install element-ui
```
3. 确认是否有其他依赖项引起冲突,可以尝试删除 node_modules 目录并重新安装依赖:
```
rm -rf node_modules
npm install
```
如果以上解决方法都不行,可以提供更多的错误信息,以便更好地定位问题。
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel=icon href=/static/dist/favicon.ico> <title>Document</title> <link href=/static/dist/css/chunk-13070ec1.ccda3c25.css rel=prefetch> <link href=/static/dist/css/chunk-1f6eb24a.5552800c.css rel=prefetch> <link href=/static/dist/css/chunk-2450c4ac.37f7ca9b.css rel=prefetch> <link href=/static/dist/css/chunk-24a27c0c.d809b953.css rel=prefetch> <link href=/static/dist/css/chunk-25dec777.b68c08db.css rel=prefetch> <link href=/static/dist/css/chunk-3a7e7ac7.61f67a30.css rel=prefetch> <link href=/static/dist/css/chunk-3ac3afd8.98bc23e9.css rel=prefetch> <link href=/static/dist/css/chunk-3b4a96bb.a0ee3bc1.css rel=prefetch> <link href=/static/dist/css/chunk-42b28a6b.64434a61.css rel=prefetch> <link href=/static/dist/css/chunk-517ab105.39040074.css rel=prefetch> <link href=/static/dist/css/chunk-56490945.643cad5c.css rel=prefetch> <link href=/static/dist/css/chunk-63b82705.d2b7ad58.css rel=prefetch> <link href=/static/dist/css/chunk-716622da.8a497f1a.css rel=prefetch> <link href=/static/dist/js/chunk-13070ec1.cc5aaa8f.js rel=prefetch> <link href=/static/dist/js/chunk-1f6eb24a.bca948d6.js rel=prefetch> <link href=/static/dist/js/chunk-2450c4ac.58e1bc6a.js rel=prefetch> <link href=/static/dist/js/chunk-24a27c0c.0ab7f6d8.js rel=prefetch> <link href=/static/dist/js/chunk-25dec777.2148f1f7.js rel=prefetch> <link href=/static/dist/js/chunk-3a7e7ac7.513dffb8.js rel=prefetch> <link href=/static/dist/js/chunk-3ac3afd8.6c148bd8.js rel=prefetch> <link href=/static/dist/js/chunk-3b4a96bb.73517657.js rel=prefetch> <link href=/static/dist/js/chunk-42b28a6b.1e8780b2.js rel=prefetch> <link href=/static/dist/js/chunk-517ab105.1e512cbc.js rel=prefetch> <link href=/static/dist/js/chunk-56490945.c3e3cef6.js rel=prefetch> <link href=/static/dist/js/chunk-63b82705.f1066fe6.js rel=prefetch> <link href=/static/dist/js/chunk-716622da.244a901e.js rel=prefetch> <link href=/static/dist/css/app.a627b381.css rel=preload as=style> <link href=/static/dist/css/chunk-vendors.3fe6fb1a.css rel=preload as=style> <link href=/static/dist/js/app.a15d8424.js rel=preload as=script> <link href=/static/dist/js/chunk-vendors.eac65f44.js rel=preload as=script> <link href=/static/dist/css/chunk-vendors.3fe6fb1a.css rel=stylesheet> <link href=/static/dist/css/app.a627b381.css rel=stylesheet> </head> <body><noscript><strong>We're sorry but iview-admin doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript> <div id=app></div> <script src=/static/dist/js/chunk-vendors.eac65f44.js></script> <script src=/static/dist/js/app.a15d8424.js></script> </body> </html> 帮我整理一下代码
这是一个 HTML 页面的代码。以下是格式整理后的代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel=icon href=/static/dist/favicon.ico>
<title>Document</title>
<link href=/static/dist/css/chunk-13070ec1.ccda3c25.css rel=prefetch>
<link href=/static/dist/css/chunk-1f6eb24a.5552800c.css rel=prefetch>
<link href=/static/dist/css/chunk-2450c4ac.37f7ca9b.css rel=prefetch>
<link href=/static/dist/css/chunk-24a27c0c.d809b953.css rel=prefetch>
<link href=/static/dist/css/chunk-25dec777.b68c08db.css rel=prefetch>
<link href=/static/dist/css/chunk-3a7e7ac7.61f67a30.css rel=prefetch>
<link href=/static/dist/css/chunk-3ac3afd8.98bc23e9.css rel=prefetch>
<link href=/static/dist/css/chunk-3b4a96bb.a0ee3bc1.css rel=prefetch>
<link href=/static/dist/css/chunk-42b28a6b.64434a61.css rel=prefetch>
<link href=/static/dist/css/chunk-517ab105.39040074.css rel=prefetch>
<link href=/static/dist/css/chunk-56490945.643cad5c.css rel=prefetch>
<link href=/static/dist/css/chunk-63b82705.d2b7ad58.css rel=prefetch>
<link href=/static/dist/css/chunk-716622da.8a497f1a.css rel=prefetch>
<link href=/static/dist/js/chunk-13070ec1.cc5aaa8f.js rel=prefetch>
<link href=/static/dist/js/chunk-1f6eb24a.bca948d6.js rel=prefetch>
<link href=/static/dist/js/chunk-2450c4ac.58e1bc6a.js rel=prefetch>
<link href=/static/dist/js/chunk-24a27c0c.0ab7f6d8.js rel=prefetch>
<link href=/static/dist/js/chunk-25dec777.2148f1f7.js rel=prefetch>
<link href=/static/dist/js/chunk-3a7e7ac7.513dffb8.js rel=prefetch>
<link href=/static/dist/js/chunk-3ac3afd8.6c148bd8.js rel=prefetch>
<link href=/static/dist/js/chunk-3b4a96bb.73517657.js rel=prefetch>
<link href=/static/dist/js/chunk-42b28a6b.1e8780b2.js rel=prefetch>
<link href=/static/dist/js/chunk-517ab105.1e512cbc.js rel=prefetch>
<link href=/static/dist/js/chunk-56490945.c3e3cef6.js rel=prefetch>
<link href=/static/dist/js/chunk-63b82705.f1066fe6.js rel=prefetch>
<link href=/static/dist/js/chunk-716622da.244a901e.js rel=prefetch>
<link href=/static/dist/css/app.a627b381.css rel=preload as=style>
<link href=/static/dist/css/chunk-vendors.3fe6fb1a.css rel=preload as=style>
<link href=/static/dist/js/app.a15d8424.js rel=preload as=script>
<link href=/static/dist/js/chunk-vendors.eac65f44.js rel=preload as=script>
<link href=/static/dist/css/chunk-vendors.3fe6fb1a.css rel=stylesheet>
<link href=/static/dist/css/app.a627b381.css rel=stylesheet>
</head>
<body>
<noscript>
<strong>We're sorry but iview-admin doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id=app></div>
<script src=/static/dist/js/chunk-vendors.eac65f44.js></script>
<script src=/static/dist/js/app.a15d8424.js></script>
</body>
</html>
阅读全文