Angular5 import interface 报错:XXX is not a module
程序开发
2023-09-04 07:54:33
在项目里定义了一个interface,device.ts。然后在component.ts中要使用这个interface,import之后,VSCode报错:‘xxx/xxx/xxx/device.ts’ is not a module。
搞了半天还是没找到解决办法。后来终于在StackOverflow上找到了解决办法,那就是——重新npm start或者ng serve!!!
重启大法果然好用啊!!!?
转载于:https://www.cnblogs.com/liulei-cherry/p/9777753.html
标签:
上一篇:
angular6.1项目文件解释
下一篇:
前端项目的理想架构
相关文章
-
无相关信息