Module '"D:/Imran/ionic/notifications/src/models/user"' has no exported member 'User'


#1

I created user.ts file as in src/models/user.ts which contains code as
user.ts file
export interface user{

name : string;
email : string;
password : string;
dev_id : string;

}

and while importing file in login.ts as => import {User} from “…/…/models/user”;
i’m getting following error.

output----

Typescript Error
Module ‘“D:/Imran/ionic/notifications/src/models/user”’ has no exported member ‘User’.
D:/Imran/ionic/notifications/src/pages/login/login.ts
import {SignUpPage} from ‘…/sign-up/sign-up’;
import {User} from “…/…/models/user”;

please help.


#2

I solved this isuue.
i was very silly mistake
it must be “User” not “user” in interface user.ts