Skip to content

Commit

Permalink
update: 更新问题
Browse files Browse the repository at this point in the history
  • Loading branch information
winchesHe committed Aug 25, 2023
1 parent b0deca6 commit 0103aaf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/src/problem/vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,5 @@ const slots = slotContent.default?.().filter(slot => (slot.type as any)?.name ==
## vue2 组件注册全局类型

借助`vetur`[globalComponents](https://vuejs.github.io/vetur/reference/#example)[unplugin-vue-components](https://github.com/antfu/unplugin-vue-components)实现为组件注册全局类型和按需导入,让`vue2`也能享受`vue3`的组件提示

## vue-loader 2.6 不支持在template中的标签使用`?.`语法
9 changes: 8 additions & 1 deletion docs/src/project/vite.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,11 @@ const C = Oop.extend({
module.exports = C

C.TENANT_SUB_VIEW_LIST = TENANT_SUB_VIEW_LIST
```
```
## 模块引用错误,引用值不存在

由于更新依赖的时候不会删除旧文件,导致本地运行的时候,三方依赖通过`esm`引用的旧文件内容,而该引用未设置值,在本地模块中会通过`setValue`设置值,本地`setValue`中引用的是新文件的内容,从而导致,三方依赖中会报错,引用值不存在(因为本地文件`setValue`调用的新文件,三方依赖用的旧文件)

解决办法:

直接删除`node_modules` .`pnpm` 里的旧文件

0 comments on commit 0103aaf

Please sign in to comment.