bug: TypeError: e is not a function
See original GitHub issueBug Report
Ionic version: [x] 5.x
Current behavior:
Upon clicking the ion-menu-button
component and selecting an item from the ion-list
in the menu, I get below error. It seems to be related to TypeScript, which I have been trying to deactivate as described in the official docs.
ion-app_8.entry.js?c215:1 TypeError: e is not a function
at eval (webpack-internal:///./node_modules/@ionic/core/dist/esm-es5/index-d8cfb4a8.js:14)
at step (webpack-internal:///./node_modules/tslib/tslib.es6.js:124)
at Object.eval [as next] (webpack-internal:///./node_modules/tslib/tslib.es6.js:105)
at fulfilled (webpack-internal:///./node_modules/tslib/tslib.es6.js:95)
eval @ ion-app_8.entry.js?c215:1
Expected behavior:
Being able to navigate the ion-menu
items.
Steps to reproduce: Not sure, doesn’t work in my starter app and not in my main project app.
Related code:
https://github.com/paddelboot/ionic-test
Ionic info:
Additional Info This is supposed to be an Ionic Vue app without Typescript support.
Ionic:
Ionic CLI : 6.13.1 (/home/hans/.nvm/versions/node/v15.8.0/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/vue 5.5.4
Capacitor:
Capacitor CLI : 2.4.6
@capacitor/core : 2.4.6
Utility:
cordova-res : not installed
native-run : not installed
System:
NodeJS : v15.8.0 (/home/hans/.nvm/versions/node/v15.8.0/bin/node)
npm : 7.5.1
OS : Linux 5.8
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
javascript - Uncaught TypeError: e is not a function on a JS ...
I check for the existence of JQuery; I launch my bookmarklet regardless of the existence of the $myvariable. But my code doesn't seem...
Read more >TypeError: "x" is not a function - JavaScript - MDN Web Docs
The JavaScript exception "is not a function" occurs when there was an attempt to call a value from a function, but the value...
Read more >[3.1.0] `Uncaught TypeError: e is not a function` on fullscreen
Got the same problem with version 3.1.0. Unfortunately it's not just an error in the console, but the editor doesn't fill the complete...
Read more >How to Handle JavaScript Uncaught TypeError: “x” is Not a ...
The Javascript error TypeError: "x" is not a function occurs when there is an attempt to call a function on a value or...
Read more >JavaScript: Uncaught TypeError: n is not a function
This is a standard JavaScript error when trying to call a function before it is defined. This error occurs if you try to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can certainly do that, but you need to specify to your
ion-menu-button
which menu to open, otherwise it will just query for the firstion-menu
available. I see you are doing that in your app, but the problem is that you are re-using IDs. In yourProjects
component, you should not be reusing the IDtestmenu
as that is the same ID for the menu in yourHome
component.Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.