Errro运行服务 - 模块没有导出成员

时间:2016-12-14 18:32:30

标签: angular angular-cli

我的应用中出现了错误配置的内容。我已经回到了我知道在#34;事件"之前工作的提交,但是在运行ng serve(下面列出的)时我收到错误并且应用程序无法加载。错误是指node_modules中我不编辑的文件。我为模块npm uninstallnpm install尝试了@angular/common后跟@angular/forms,但这没有效果。在这一点上,我不知道该怎么做。

[default] Checking started in a separate process...

[default] /Users/carlson/dev/a2/manuscripta2b/node_modules/@angular/common/src/common.d.ts:19:10 
    Module '"/Users/carlson/dev/a2/manuscripta2b/node_modules/@angular/core/index"' has no exported member 'Version'.

[default] /Users/carlson/dev/a2/manuscripta2b/node_modules/@angular/common/src/version.d.ts:13:10 
    Module '"/Users/carlson/dev/a2/manuscripta2b/node_modules/@angular/core/index"' has no exported member 'Version'.

[default] /Users/carlson/dev/a2/manuscripta2b/node_modules/@angular/forms/src/version.d.ts:13:10 
    Module '"/Users/carlson/dev/a2/manuscripta2b/node_modules/@angular/core/index"' has no exported member 'Version'.
[default] /Users/carlson/dev/a2/manuscripta2b/src/app/editor/editor/editor/editor.component.ts:23:14 

1 个答案:

答案 0 :(得分:0)

我使用ng new foo设置新产品,然后从损坏的应用中复制src目录,然后在package.json中慢慢重建依赖项。