解决办法:在tsconfig.json
内的compileerOptions
下添加 “tyoes”:[“node”]
原文链接:https://blog.csdn.net/weixin_42164539/article/details/113918076
本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。
本博客所有文章如无特别注明均为原创。
复制或转载请以超链接形式注明转自起风了,原文地址《require引入图片,Cannot find name ‘require‘. Do you need to install type definitions for node?》
复制或转载请以超链接形式注明转自起风了,原文地址《require引入图片,Cannot find name ‘require‘. Do you need to install type definitions for node?》
还没有人抢沙发呢~