Search code examples
angularnpmupdating

_angular_core.Version is not a constructor after updating Angular 2


I believe the problem is related to updating angular 2. My actual sequence of events that led to this error was 1. installing ng2-typeahead, 2. getting errors and realizing I needed to install FormsModule, 3. getting more errors and npm updating everything. The line of code that errors in /node_modules/@angular/common/bundles/common.umd.js:3481:36) is

/**
 * @stable
 */
var /** @type {?} */ VERSION = new _angular_core.Version('2.3.0');

NPM debug log at npm-debug.log at pastebin.


Solution

  • There is a conflict between [email protected] and [email protected]. Try to rollback your dependencies to [email protected] and [email protected], also, the typescript sould be 2.0.3+.

    https://github.com/angular/angular/issues/13342