vite
余栀丶
console.log('hello world!')
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
require.resolve 在 ES module 中的替代方案
es module 替换commonjs 的 require原创 2024-07-05 17:48:07 · 580 阅读 · 0 评论 -
vite忽略.vue扩展名 Failed to resolve import ..... Does the file exist?
在vite脚手架中, 引入时忽略.vue扩展名将导致错误 // 一个名为tsc.vue的文件, import tsc from "./tsc.vue"; // 上面的引入可以正常运行,但 import tsc from "./tsc"; // 将不起作用, 并提示错误 // Internal server error: Failed to resolve import "./tsc" from "somewhere.js". Does the file exist? 这是因为vite已不再默认忽略.v原创 2021-05-07 14:41:11 · 46657 阅读 · 1 评论
分享