【发布时间】:2016-07-31 13:14:26
【问题描述】:
我昨天一直在开发我的 angular 2 应用程序,一切运行良好。
今天我试图npm start我的应用程序,我得到这个编译错误:
typings/browser/ambient/moment/index.d.ts(9,21): error TS2503: Cannot find namespace 'moment'.
虽然我没有在我的应用中提及与moment 相关的任何内容!
如果我没有使用与 moment 相关的任何内容,会导致此错误的原因是什么?
我试过了:
- The solutions here
npm remove moment
有什么想法吗?
【问题讨论】: