[已解决]This relative module was not found:
来源:2-8 核心指标公共组件抽取
子玖
2021-09-23



我这路径也没错啊,为什么报错
ERROR Failed to compile with 1 error 下午9:47:51
下午9:47:51
This relative module was not found:
* ../TotalSales in ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.2.2@babel-loader/lib!./node_modules/_cache-loader@4.1.0@cacheules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.8@vue-loader/lib??vue-loader-options!./src/components/TopVieng=js&w/index.vue?vue&type=script&lang=js&
————————————————————
TotalSales文件的问题:
删了重新写后
<template>
<common-card />
</template>
<script>
import CommonCard from '../CommonCard'
export default {
components: {
CommonCard
}
}
</script>
<style>
</style>
写回答
2回答
-
止于平凡
2022-06-25
在你的CommonCard中的export代码块里面加上name : 'index'
00 -
慕容651421610
2022-04-30
你好,请问怎么解决的,我也碰到了同样的问题
012022-06-20
相似问题