This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
引入静态资源import '@/.../index.html'报错Cannot find module,npm run dev就没问题 #18393
Labels
You can continue the conversation there. Go to discussion →
Describe the bug
'npm create vue'创建了一个vite/vue/ts项目。
<script setup lang="ts"> import Material from '@/components/Material Design Icon Library/index.html' ... </script> <iframe :src="Material" frameborder="0"></iframe> ...代码如下:
用'npm run dev'就能跑起来:
用yarn run build报错如下:
不知道是不是bug,btw,import vue 是没问题的
Reproduction
https://github.com/jevonsflash/matoapp-icon-collection
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: