【项目 Vue3 轮子】0.0 项目中遇到的问题 2022-04-08 FrontEnd 约 4215 字 预计阅读 9 分钟 文章目录 项目中遇到的问题与报错 轮子 ⇧ 发布组件库时的 main 路径错误 ⇧ rollup.config.js配置错误及运行rollup -c错误 ⇧ vue-tsc && vite build ⇧ build 之后加载 .md 文件报错 ⇧ Prismajs 不显示代码行数 ⇧ 提问: ⇧ 引入的样式没有生效或报错 ⇧ vite 插件 rollup 文档的 命名误导 id ⇧ 解构出的 props 数据在 script setup 中失去数据响应性 ⇧ CSS @import 在webstorm中报错 ⇧ <component></component>必须加上:key="currentTab"属性 ⇧ 警告[Vue warn]: Extraneous non-props attributes (title) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. ⇧ 解决hover影响移动端样式 ⇧ 使用 script setup 语法糖 无法获取context ⇧ :deep(selector) 代替Vue2.x中SCSS过时的写法 ⇧ 参考文章 ⇧ 相关文章 ⇧ 项目中遇到的问题与报错 大纲链接 § [toc] 轮子 ⇧ 初步完成的轮子 基于Vue 3.2、TS,使用vite2.0构建打包 使用composition API和