samedi 26 novembre 2016

I have trouble importing Component from angular2/core

I am learning how to make Angular2 apps from Pluralsight. I have an error which I recently discovered. Whenever I try to import Component from angular2/core, I get error saying this:

[ts] Module '"c:/Users/Adit/Documents/Web/Angular 2/Angular2-GettingStarted-master/APM - Start/node_modules/angular2/core"' has no exported member 'Component'.

This error is from Visual Studio Code itself and not the command line.

At first I did some research and found similar questions on StackOverflow itslef. The answer to those was re-installing the angular2 using npm. I did that but that not helped.

How to fix?




Aucun commentaire:

Enregistrer un commentaire