Import error: Can't find module


#1

I’ve installed my ionic project in on a new computer and getting bizarre error. In short I have the package “angular2-jwt”: “^0.2.3” in my project. I’ve run npm install as follows:

npm install angular2-jwt --save

I check the node_modules for the project and the folder angular2-jwt is there. The issue is when I try to import:
import { JwtHelper } from ‘angular2-jwt’;

It is unable to find JwtHelper in fact it does not recognise angular2-jwt exists. I use Visual Studio usually when hover over the from ‘xxx’ I get the full path. However in this case I only get module ‘*’ which means it can’t find the path.

This is really frustrating, has anyone come across a similar issue and know the solution???

Thanks in advance.