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

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

Cannot find name 'require'. Do you need to type definitions for node? Try `npm i @types/node
阅读 28
2023-04-18
angular项目,打算通过require使用js,报错:

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

相关推荐
精彩评论(0)