Invalid views to insert


#1

Runtime Error
Uncaught (in promise): invalid views to insert
Stack
Error: Uncaught (in promise): invalid views to insert
at c (http://localhost:8100/build/polyfills.js:3:19752)
at Object.reject (http://localhost:8100/build/polyfills.js:3:19174)
at NavControllerBase._fireError (http://localhost:8100/build/vendor.js:53188:16)
at NavControllerBase._failed (http://localhost:8100/build/vendor.js:53181:14)
at http://localhost:8100/build/vendor.js:53228:59
at t.invoke (http://localhost:8100/build/polyfills.js:3:14976)
at Object.onInvoke (http://localhost:8100/build/vendor.js:5293:33)
at t.invoke (http://localhost:8100/build/polyfills.js:3:14916)
at r.run (http://localhost:8100/build/polyfills.js:3:10143)
at http://localhost:8100/build/polyfills.js:3:20242

Getting this error when clicking on a menu option which sets the root page to a tabs page. The error occurs when i am already on this tabs page and click the menu option.
Expected Behaviour:
Should keep me on the the page where I am .

Platform info:
Ionic Framework: 3.9.2
Ionic App Scripts: 3.1.5
Angular Core: 5.0.3
Angular Compiler CLI: 5.0.3
Node: 6.11.4
OS Platform: Linux 4.13
Navigator Platform: Linux x86_64
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

PS: I am very new to ionic.


#2

I have seen this behavior before.
This happens when you install an NPM package and use it in a wrong way on your HTML fileā€¦ likely with wrong commands.

Check what you have installed and see if they were used properly on your html & ts file.


#3

I have the same problem as well