0
点赞
收藏
分享

微信扫一扫

Cannot find name 'require'. Do you need to type definitions for node? Try `npm i @types/node

静守幸福 2023-04-18 阅读 24


angular项目,打算通过require使用js,报错:

Cannot find name

解决办法:找到tsconfig.app.json文件,在types中加入"node"即可

Cannot find name

举报

相关推荐

0 条评论