Comments (5)
ts类型不匹配,请检查一下ts 类型定义
from tmagic-editor.
node版本:14.19.3 安装依赖无任何报错 报错信息: /magic-admin/server/node_modules/_ts-node@8.10.2@ts-node/src/index.ts:434 return new TSError(diagnosticText, diagnosticCodes) ^ TSError: ⨯ Unable to compile TypeScript: src/service/act.ts:185:9 - error TS2322: Type '{ actId: number; }' is not assignable to type 'AllowArray<Fn | Literal | Where | Json | WhereAttributeHash | { [or]: AllowArray<AllowArray<Fn | Literal | Where | ... 4 more ... | { ...; }>>; } | { ...; } | { ...; }>'. Property 'clone' is missing in type '{ actId: number; }' but required in type 'Fn'.
.....
node_modules/sequelize/types/model.d.ts:52:3 52 where?: WhereOptions; ~~~~~ The expected type comes from property 'where' which is declared here on type 'FindOptions' src/service/act.ts:346:14 - error TS2339: Property 'toJSON' does not exist on type 'ActInfo'.
346 return act.toJSON() as ActInfoIncludePage;
老哥解决了嘛,我也遇到了
from tmagic-editor.
ts类型不匹配,请检查一下ts 类型定义
需要自己改报错的 ts 类型?
from tmagic-editor.
node版本:14.19.3 安装依赖无任何报错 报错信息: /magic-admin/server/node_modules/_ts-node@8.10.2@ts-node/src/index.ts:434 return new TSError(diagnosticText, diagnosticCodes) ^ TSError: ⨯ Unable to compile TypeScript: src/service/act.ts:185:9 - error TS2322: Type '{ actId: number; }' is not assignable to type 'AllowArray<Fn | Literal | Where | Json | WhereAttributeHash | { [or]: AllowArray<AllowArray<Fn | Literal | Where | ... 4 more ... | { ...; }>>; } | { ...; } | { ...; }>'. Property 'clone' is missing in type '{ actId: number; }' but required in type 'Fn'.
.....
node_modules/sequelize/types/model.d.ts:52:3 52 where?: WhereOptions; ~~~~~ The expected type comes from property 'where' which is declared here on type 'FindOptions' src/service/act.ts:346:14 - error TS2339: Property 'toJSON' does not exist on type 'ActInfo'.
346 return act.toJSON() as ActInfoIncludePage;
from tmagic-editor.
@jia000
1、ts-node内部类型报错
2、代码没改过,非手残改错
from tmagic-editor.
Related Issues (20)
- tmagic-admin怎么和tmagic-editor结合呢
- radio-group的使用方式发生改变了吗? HOT 1
- componentGroupList自定义icon HOT 1
- 组件内部通过api获取到某些数据,如何用这些数据去反向修改右侧编辑框中的数据呢? HOT 3
- xp系统 是否可以通过增加plugin 来兼容 HOT 3
- input组件无法及时更新数据。 HOT 2
- 给组设置border 会导致组下的组件 位置偏移 HOT 2
- 运行pnpm bootstrap报错
- 初始化项目遇到的几个问题 HOT 1
- 请问有tmagic-editor的数据源的使用方法说明文档吗? HOT 1
- 集成到自己的项目中页面一直加载不出来 HOT 4
- chrome91版本,调用 editorService.update() 会出错,是否可以在下个版本兼容一下 HOT 4
- 数据源 处理 报错path_1[1] HOT 7
- 右侧样式面板设置字体不生效 HOT 3
- 独立运行playground, @tamgic/form 的样式不生效 HOT 1
- 数据源 数组字段绑定 页面卡死 HOT 3
- react版本迭代容器组件IteratorContainer 初始化值 错误 HOT 1
- formconfig配置可以依赖某项表单值进行展示吗? HOT 2
- 通过代码块来修改dsl中的节点样式以后,调用setConfig无法重新生效 HOT 4
- 组件复制后进行旋转,然后移动组件会出现画框分离
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 tmagic-editor.