上一页 1 2 3 4 5 6 7 8 9 10 ··· 21 下一页
摘要: 类型“typeof BigNumber”的参数不能赋给类型“Value”的参数。 类型“typeof BigNumber”缺少类型“Instance”中的以下属性: c, e, s 原来: bigNumber._toFixed = function (...arg: any) { return ne 阅读全文
posted @ 2021-08-19 14:26 Redchar 阅读(524) 评论(0) 推荐(0) 编辑
摘要: Your rootDir is currently set to "./". Please change your rootDir to "./src".TSDX has deprecated setting tsconfig.compilerOptions.rootDir to "./" as i 阅读全文
posted @ 2021-08-19 11:47 Redchar 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 创建对应文件:如index.d.ts或者index.d.tsx。然后声明一下即可。 如果您不关心外部库的类型,并且希望将所有没有类型的库导入为any,则可以将其添加到具有.d.ts扩展名的文件中: declare module '*'; 这样做的好处(和缺点)是,您可以导入任何东西,TS可以编译。 阅读全文
posted @ 2021-08-19 11:34 Redchar 阅读(631) 评论(0) 推荐(0) 编辑
摘要: 删除package-lock.json后重新安装即可 阅读全文
posted @ 2021-08-12 18:07 Redchar 阅读(1424) 评论(0) 推荐(1) 编辑
摘要: .section::-webkit-scrollbar { width: 16px; } .section::-webkit-scrollbar-track { background-color: #e4e4e4; border-radius: 100px; } .section::-webkit- 阅读全文
posted @ 2021-08-11 11:28 Redchar 阅读(22) 评论(0) 推荐(0) 编辑
摘要: Error: Invalid hook call. Hooks can only be called inside of the body of a function component. 场景:sdk中使用antd,export之后前端工程引入报错 原因:react冲突 解决: "peerDepe 阅读全文
posted @ 2021-08-10 11:21 Redchar 阅读(2783) 评论(0) 推荐(0) 编辑
摘要: react 报错:'React' must be in scope when using JSX react/react-in-jsx-scope 解决: import React, {Component} from 'react'; R大写 阅读全文
posted @ 2021-08-09 21:54 Redchar 阅读(483) 评论(0) 推荐(0) 编辑
摘要: ERROR TypeError: fs.readdir is not a function lerna项目packages下,使用create-react-app创建的项目调用使用create-react-library创建的组件方法时报错 解决:未解决,删除create-react-app项目,重 阅读全文
posted @ 2021-08-09 16:17 Redchar 阅读(746) 评论(0) 推荐(1) 编辑
摘要: 解决:降低yarn的版本,从1.22降到了1.18 yarn policies set-version 1.18.0 阅读全文
posted @ 2021-08-09 14:27 Redchar 阅读(865) 评论(0) 推荐(0) 编辑
摘要: can't find module react-scripts 原因:分包版本与root安装版本不一致, 解决:在分别下安装指定版本,yarn add react-scripts@3.4.1 阅读全文
posted @ 2021-08-09 14:18 Redchar 阅读(60) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 21 下一页