美文网首页
React TypeScrit报错

React TypeScrit报错

作者: RunningJiang | 来源:发表于2021-11-03 15:44 被阅读0次

错误日志:
TypeScript error in /home/jl/deeplearning/bootcamp/solutions/text_search_engine/quick_deploy/client/node_modules/@popperjs/core/lib/createPopper.d.ts(1,13):
'=' expected. TS1005

1 | import type { OptionsGeneric, Modifier, Instance, VirtualElement } from "./types";
| ^
2 | import detectOverflow from "./utils/detectOverflow";
3 | declare type PopperGeneratorArgs = {
4 | defaultModifiers?: Array<Modifier<any, any>>;
解决方案:
package.json 中的把typescript 版本提高为"typescript": "~3.8.0"

相关文章

网友评论

      本文标题:React TypeScrit报错

      本文链接:https://www.haomeiwen.com/subject/cdhczltx.html