我的应用中出现了错误配置的内容。我已经回到了我知道在#34;事件"之前工作的提交,但是在运行ng serve
(下面列出的)时我收到错误并且应用程序无法加载。错误是指node_modules
中我不编辑的文件。我为模块npm uninstall
和npm 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
答案 0 :(得分:0)
我使用ng new foo
设置新产品,然后从损坏的应用中复制src目录,然后在package.json
中慢慢重建依赖项。