你看到很多文章后才找到这里的吧,有用下面方法还在报错的,往下看

1、()=>import(/* webpackChunkName: “fail” */ @/views${firstUrl}),
2、(resolve) => require([@/views${firstUrl}], resolve),

在这里插入图片描述

Error: Cannot find module '@/view/function () {
      return Promise.resolve("@/view/".concat(item.component)).then(function (s) {
        return Object(E_buy_vue_admin_template_fuben_vue_admin_template_node_modules_babel_runtime_helpers_esm_interopRequireWildcard_js__WEBPACK_IMPORTED_MODULE_0__["default"])(__webpack_require__("./src/store/modules sync recursive")(s));
      });
    }'
    at webpackEmptyContext (eval at ./src/store/modules sync recursive (app.js:2474:1), <anonymous>:2:10)

这篇文章讲的很透彻了,

https://blog.csdn.net/hunt_er/article/details/110661577

但是!!!肯定还有不行的,重新组件路由对象吧

在这里插入图片描述
很玄学,重新把路由对象创建一下,就可以了,我感觉还是很怪的,有明白的可以给我解答一下

Logo

昇腾计算产业是基于昇腾系列(HUAWEI Ascend)处理器和基础软件构建的全栈 AI计算基础设施、行业应用及服务,https://devpress.csdn.net/organization/setting/general/146749包括昇腾系列处理器、系列硬件、CANN、AI计算框架、应用使能、开发工具链、管理运维工具、行业应用及服务等全产业链

更多推荐