Comments (10)
检查一下你的 tsconfig.json
配置呢,尽量给一个最小可复现示例
from vue-tree.
{
"files": [],
"references": [
{
"path": "./tsconfig.node.json"
},
{
"path": "./tsconfig.app.json"
}
],
"compilerOptions": {
"noImplicitAny": false,
"noImplicitThis": true,
"allowJs": true,
"target": "es6"
}
}
from vue-tree.
"moduleResolution": "Node"
试试?有用 vite 么
from vue-tree.
https://github.com/xtuer/template-app/tree/master/template-vue3-pc
是这个项目吗,有空我跑看看
from vue-tree.
"moduleResolution": "Node"
试试?有用 vite 么
试了一下没有效果。
https://github.com/xtuer/template-app/tree/master/template-vue3-pc
是这个项目吗,有空我跑看看
这个模板项目里也使用了 vue-tree,您可以试试看。
from vue-tree.
看起来是你搞错了 references
字段的用法,没看出来为什么要引用两个 tsconfig
。在 VSCode 里面把这个字段注释了就没报错了。
用法可以参考 https://stackoverflow.com/questions/51631786/how-to-use-project-references-in-typescript-3-0
from vue-tree.
看起来是你搞错了
references
字段的用法,没看出来为什么要引用两个tsconfig
。在 VSCode 里面把这个字段注释了就没报错了。用法可以参考 https://stackoverflow.com/questions/51631786/how-to-use-project-references-in-typescript-3-0
tsconfig 是脚手架生成的,我没有改这个文件,去掉 references 后也会报错。
from vue-tree.
不知道你用的什么脚手架,信息不足,你多检查一下吧,我这边去掉 references 之后没报错了
from vue-tree.
使用的是 vue3 官方的脚手架 npm init vue@latest
生成的: https://cn.vuejs.org/guide/quick-start.html#creating-a-vue-application
下面是 sql-formatter https://github.com/sql-formatter-org/sql-formatter 的 package.json 的导出部分,可以参考一下。
"exports": {
"./package.json": "./package.json",
".": {
"types": "./lib/src/index.d.ts",
"import": "./lib/index.js",
"require": "./dist/sql-formatter.min.cjs"
}
},
from vue-tree.
不知道你用的什么脚手架,信息不足,你多检查一下吧,我这边去掉 references 之后没报错了
知道你的为啥不报错了,因为我在 src/shims.d.ts 里使用declare module '@wsfe/vue-tree'
给排除了,所以不报错。排除后 import vue-tree 里的类型都是 any 类型了。
from vue-tree.
Related Issues (20)
- 右键菜单事件参数没有鼠标事件 event HOT 1
- check和uncheck事件触发时,会先触发check事件 HOT 1
- 节点当前行高亮样式建议 HOT 3
- 建议增加节点渲染的slot HOT 1
- vue2下v-model不生效 HOT 1
- vue2.x下使用VTreeDrop报错 HOT 1
- scrollTo 不生效 HOT 1
- 不能往一个子节点个数为0的父节点使用prepend或者append插入一个子节点
- 两点建议
- v3.2.0版本,底层节点会显示展开图标 HOT 1
- 在append 和 prepend 节点到tree上时,报错
- vue2.7 reactive([]) has warning HOT 1
- typescript d.ts not work HOT 1
- 怎么修改某个节点的数据 HOT 1
- 报错无法使用 HOT 1
- 关于 @wsfe/vue-tree 对 Vue2 支持的讨论 HOT 1
- 某个节点下的数据太多时显示为空白 HOT 1
- 能增加线条显示吗?
- 能否增加拖动前判断函数
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-tree.