Topic: Tooltip error from heck

purtzerb free asked 3 years ago

Expected behavior I want the tooltip to work.

Actual behavior Errors out when mounted

Resources (screenshots, code snippets etc.)

Error: Uncaught TypeError: Object(...) is not a function at Popper$$1

The above error occurred in the component: in Popper$$1 (created by Follow) TypeError: Object(...) is not a function at Popper$$1

This is not a complicated component. I have been able to get all other components working. Not me, nor my friend could get this one working. I have file-loader and url-loader. I even installed react-popper. Nothing has worked.

This is getting irritating. I downloaded this 2 days ago, so i am assuming it is the newest version.

Image of my code

Jakub Mandra staff answered 3 years ago

I've investigated the problem deeply and found out what's wrong: you have to use the latest versions of react and react-dom, because Tooltips are using hooks (and in future releases, there will be more and more components built with hooks).

My test set: react: 16.3.0 react-dom: 16.3.0 react-scripts: 2.1.1 mdbreact #4.13.0

Result: exact same error message.

So please update your react version. Also, I suggest checking the version by typing npm ls react.



purtzerb free commented 3 years ago

I appreciate your response.

I apologize for my quippy attitude the other day lol I have been under alot of stress with work, and this was an issue that was baffling me. I really appreciate you taking the time to outline such a detailed response. I will take a few deep breaths before posting sarcastic comments haha

Sincerely, Benjamin Purtzer

Jakub Mandra staff commented 3 years ago

Thank you @purtzerb, there is no need for an apology. I completely understand the frustration when something does not go our way.

Hope that the problem was solved?

If there is anything else I could do for you do not hesitate to ask me. I'll be happy to help you.



Bart Cernel free answered 3 years ago

I am also having this issue. I've updated mdbreact to 4.13.0 and now the tooltips don't work. I took the exact code from the example page but I had tooltips working before this update.

I look at the previous posts about npm modules and I installed or updated them with these being the results.

@babel/core ^7.4.4
@babel/plugin-proposal-class-properties ^7.4.4
@babel/preset-env ^ 7.4.4
@babel/preset-react ^7.0.0 babel-loader ^8.0.5

From what I can tell, all of my versions are the same or greater than what was posted but I can't use tooltips on my pages as they cause the popper error.

Jakub Mandra staff commented 3 years ago

Please use react v.16.8.0 or greater - it's the version which introduces hooks.



Jakub Mandra staff answered 3 years ago


If you use custom project configuration it will need at least those babel dependencies:

"@babel/core": "^7.1.2",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/preset-env": "^7.1.0",
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.4",

I was trying to reproduce your problem with present and with older versions of mdbreact. With no success while using create-react-app.

Have you tried our demo application? There are variations of Tooltip usage.

It would be nice if we could take a look at your configuration files (package.json, webpack).

About premium - with premium support, all your issues on the support forum are solved with 24h, without PS we cannot guarantee that your ticket will be answered by one of our dedicated support team members and your issues are prioritized over any other.

Best regards,


purtzerb free answered 3 years ago

How is this considered "premium" support?

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • User: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.11.1
  • Device: Macbook pro
  • Browser: Chrome
  • OS: MacOS mojave
  • Provided sample code: No
  • Provided link: No