angular - Angular 11:-找不到模块:错误:无法解析'../../../../node_modules/@angular/forms/forms'
问题描述
我正在尝试使用 Angular 11 中的表单,但出现以下错误 - 错误:./src/app/components/register/register.component.ts 未找到模块:错误:无法解析 '../../. ./../node_modules/@angular/forms/forms' 在'C:\Users\Ram Chaurasiya\Desktop\Projects\MyRealtimeProjects\onlineLearningPortal\src\app\components\register'
解决方案
请检查您在 register.component.ts 中的导入它应该仅来自“@angular/forms”