0

When I import the "ErrorHandler" module like this:

import { NgModule, ErrorHandler } from '@angular/core';

Visual studio indicates "Module .../@angular/core/index has no exported member 'ErrorHandler'"

Why ? It isn't installed ? how to install it ?

Thx!

1 Answer 1

1
npm install @angular/core

try reinstall core module

or update package.json file and run

npm install
Sign up to request clarification or add additional context in comments.

3 Comments

thx but it doesn't work... I tried to update package.json "2.0.0-rc.5" -> "^2.3.1" and again "npm install @angular/core" but it doesn't work either
try making it "@angular/core": "~2.1.2"
@amorel It happens with the libraries.... u need the version of code in sync with the libraries....

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.