引入静态资源import '@/.../index.html'报错Cannot find module,npm run dev就没问题 #18399
Unanswered
jevonsflash
asked this question in
Q&A
Replies: 1 comment
-
I guess you are trying to navigate to the HTML file instead of processing the content of the HTML file. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
Beta Was this translation helpful? Give feedback.
All reactions