primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Cannot resolve module '@angular/forms'

Open goldbergyoni opened this issue 10 years ago • 3 comments

Hi,

I'm receiving the following error message when trying to load primeng (beta 9) component in typical NG2 app. It used to work great not long ago.

ERROR in ./~/primeng/components/listbox/listbox.js Module not found: Error: Cannot resolve module '@angular/forms' in C:\code solutions\projectname\node_modules\primeng\components\listbox @ ./~/primeng/components/listbox/listbox.js 13:14-39

Your help is appreciated

Yoni

goldbergyoni avatar Jul 11 '16 08:07 goldbergyoni

What version of Angular2 are you using. They recently changed the @angular/forms.

MarkPerryBV avatar Jul 11 '16 13:07 MarkPerryBV

You need to reference this in your package.json if you are using rc.4 of Angular 2.

"@angular/forms": "0.2.0",

garethlewis avatar Jul 13 '16 14:07 garethlewis

Please try with the latest PrimeNG version and comment if the issue still persists.

Mrtcndkn avatar May 04 '17 14:05 Mrtcndkn