找不到模块“./components/visbleColumn.vue”或其相应的类型声明。ts(2307)
时间: 2023-10-03 14:07:14 浏览: 130
根据您提供的引用内容和,您可以尝试解决找不到模块的问题。您需要在项目根目录下的`env.d.ts`文件中添加以下内容:
```typescript
declare module "*.vue" {
import type { DefineComponent } from "vue";
const vueComponent: DefineComponent<{}, {}, any>;
export default vueComponent;
}
```
这样就可以正确引用`./components/visbleColumn.vue`模块了。<span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* [找不到模块“./App.vue”或其相应的类型声明。ts(2307)](https://blog.csdn.net/Dandrose/article/details/129195752)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [vue3.2+ts错误:找不到模块“./App.vue”或其相应的类型声明。ts(2307)](https://blog.csdn.net/caishijian2008/article/details/128363464)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文