I am developing aproject using VS 2017 and Angular 2 + asp.netcore template. The default project runs fine, but when I import ReactiveFormsModule in app.module.ts; it throws error
Prerendering failed because of error: TypeError: _angular_core.InjectionToken is not a constructor
As per the stack trace, error is in ..\ClientApp\dist\main-server.js file.
I have upgraded the project from Angular 2.4 to angular 4.0. I am not able to understand why an import should throw an error like that.
var NG_VALIDATORS = new _angular_core.InjectionToken('NgValidators');Am I missing something here? - Maverik