question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: TypeError: e is not a function

See original GitHub issue

Bug 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:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
liamdebeasicommented, Mar 12, 2021

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 first ion-menu available. I see you are doing that in your app, but the problem is that you are re-using IDs. In your Projects component, you should not be reusing the ID testmenu as that is the same ID for the menu in your Home component.

0reactions
ionitron-bot[bot]commented, Apr 14, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found