Ernes
Tech
Register
Login
Jobs
Search
News
Articles
Videos
Shop
Home
Articles
Details
+1 (216)-435-0788
Join the Community
Ionic Error popTo(opts?) Function
[10:52:59] typescript: node_modules/ionic-angular/navigation/nav-controller-base.d.ts, line: 57
Property 'popTo' in type 'NavControllerBase' is not assignable to the same property in base type
'NavController'. Type '(indexOrViewCtrl: any, opts?: NavOptions, done?: Function) => Promise
' is not
assignable to type '(page: any, params?: any, opts?: NavOptions, done?: Function) => Promise
'. Types of
parameters 'done' and 'opts' are incompatible. Type 'NavOptions' is not assignable to type 'Function'.
Property 'apply' is missing in type 'NavOptions'
.
L56: pop(opts?: NavOptions, done?: Function): Promise
;
L57: popTo(indexOrViewCtrl: any, opts?: NavOptions, done?: Function): Promise
;
L58: popToRoot(opts?: NavOptions, done?: Function): Promise
;
Follow the path given in the error
Find function popTo() on line 57 and remove the arguments
save and do cmd ionic server again to start the ionic app.
Write an Article
Views:
590
49
Notify Me of New Posts
×
We Recieved Your Request. Thank you.
We'll never share your email with anyone else.
Submit
You Liked This Article
No Login Required!
If you log in, you will be notified when someone leaves a comment.
Other users would like to know if this solution helped you.
Post Comment
Login With Google
Login With LinkedIn
Login With Microsoft
Login With GitHub
Top
© 2023 - ErnesTech LLC-
Privacy
+1 (216)-435-0788
English (United States)
Spanish (Spain)
French (France)
Portuguese (Brazil)
Chinese (China)
Turkish (Turkey)
German (Germany)
Jobs
Search
News
Articles
Videos
Shop
Contact
Sign Up
Login
Grid-Method Tools
PDF to HTML Converter
Forums
How Can We Improve this Site?
2 + 4 =
Submit