[ pages/Location/Location.json 文件内容错误] pages/Location/Location.json: ["usingComponents"]["navigationBarTitleText"]: "管理地址",在 D:\wechat\Program1/pages/Location/管理地址 D:\wechat\Program1/pages/Location/管理地址/index D:\wechat\Program1/pages/Location/miniprogram_npm/管理地址 D:\wechat\Program1/pages/Location/miniprogram_npm/管理地址/index D:\wechat\Program1/pages/miniprogram_npm/管理地址 D:\wechat\Program1/pages/miniprogram_npm/管理地址/index D:\wechat\Program1/miniprogram_npm/管理地址 D:\wechat\Program1/miniprogram_npm/管理地址/index 路径下未找到组件(env: Windows,mp,1.06.2307202; lib: 2.33.0)
时间: 2023-12-07 16:05:07 浏览: 93
根据你提供的信息,看起来是在文件路径 "pages/Location/Location.json" 中的"navigationBarTitleText"字段存在错误。文件路径中的路径可能是不正确的,导致无法找到该组件。
请确保路径正确,并且文件中的字段名称和值都正确。如果路径和字段都是正确的,那可能是因为该组件在指定路径下确实不存在。
你可以检查以下路径是否存在该组件:
- D:\wechat\Program1/pages/Location/管理地址/index
- D:\wechat\Program1/pages/Location/miniprogram_npm/管理地址/index
- D:\wechat\Program1/pages/miniprogram_npm/管理地址/index
- D:\wechat\Program1/miniprogram_npm/管理地址/index
如果以上路径中没有找到组件,可能需要检查组件的正确性或重新配置路径。
相关问题
09:45:32.879 Error when using sourcemap for reporting an error: Can't resolve original location of error. 09:45:32.881 "doExport" is not exported by "../../../../../../../Documents/HBuilderProjects/ytk/common/exportExcel.js", imported by "../../../../../../../Documents/HBuilderProjects/ytk/pages/search/company/company.vue". 09:45:32.882 at pages/search/company/company.vue:5:9 09:45:32.883 3: import { createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode... 09:45:32.884 4: 09:45:32.887 5: import { doExport } from '@/common/exportExcel.js'; 09:45:32.889 ^ 09:45:32.890 6: import { jsons } from '/untils/excelJson.js'
这个错误提示说在使用sourcemap报告错误时无法解析错误的原始位置。同时,它指出在你的`company.vue`文件中,尝试导入的`doExport`函数在`exportExcel.js`文件中没有被导出。
这个问题可能有几种可能的原因:
1. 确保`exportExcel.js`文件中确实有导出`doExport`函数,并且导出语句是正确的。
```javascript
export function doExport() {
// 函数的定义和实现
}
```
2. 确保路径`@/common/exportExcel.js`是正确的。你可以检查一下相对路径是否正确,并且确保文件名拼写正确。
请根据上述提示进行检查和调整,应该能够解决这个问题。
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" type="text/css" href="./CSS/index.css"> <script type="text/javascript" src="./js/jquery-3.3.1.js"></script> <title>Document</title> </head> <body> <div class="divclass"> <button onclick="getLogIn()">log in</button> <hr> <input type="file" id="uploadFile" name="uploadFile" /> <button onclick="addFile()" type="submit">提交</button> <hr> <input type="text" id="downloadfilename"> <button onclick="downloadFile()" target="new target">下载</button> </div> </body> <!-- http://127.0.0.1:8082/localTest/upload --> <!-- http://127.0.0.1:8082/localTest/testDownload --> <script> function getLogIn() { window.location.href = "./pages/login.html"; } function downloadFile() { var filename = document.getElementById("downloadfilename").value; //window.open("http://127.0.0.1:8082/localTest/testDownload?filename=" + encodeURI(filename)); window.open("http://127.0.0.1:8088/api/DownloadByCustomer?filename=" + encodeURI(filename)); } function addFile() { var formData = new FormData(); formData.append("file1", document.getElementById('uploadFile').files[0]); $.ajax({ url: 'http://127.0.0.1:8088/admApi/admUpload', type: 'POST', data: formData, // 上传formdata封装的数据包 //dataType: 'JSON', timeout: 10000, cache: false, // 不缓存 processData: false, // jQuery不要去处理发送的数据 contentType: false, // jQuery不要去设置Content-Type请求头 success: function (res) { console.log(res) console.log("上传成功"); return alert("上传成功"); }, error: function (sd) { console.log(sd) console.log("上传失败"); return alert("上传失败"); } }); }; </script> </html>
这是一个 HTML 页面,包含一个按钮和三个输入框。点击按钮会跳转到 login.html 页面,其中一个输入框可以用来上传文件,另一个输入框可以输入文件名,点击下载按钮会下载指定文件名的文件。其中,上传文件的代码使用了 jQuery 的 ajax 方法,将文件数据包装为 FormData 格式上传。下载文件的代码使用了 window.open 方法,将文件名作为参数拼接在 URL 后面进行下载。页面中的地址都是本地地址,需要根据实际情况进行修改。
阅读全文
相关推荐
















