Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: this.add is not a function #179

Open
rajeevvishva opened this issue Jan 13, 2024 · 3 comments
Open

TypeError: this.add is not a function #179

rajeevvishva opened this issue Jan 13, 2024 · 3 comments

Comments

@rajeevvishva
Copy link

Getting error : TypeError: this.add is not a function

react": "^18.2.0",
"react-dom": "^18.2.0",
"react-notifications-component": "^4.0.1",
"react-router-dom": "^6.21.1",

@aaronrhodes
Copy link

is this in a unit test? I had to add a element to my render method which solved this issue. Otherwise might need one in the app root 👍

@gabrielhpugliese
Copy link

@aaronrhodes what do you mean about "add a element to my render method"? I am having the same error

@aaronrhodes
Copy link

aaronrhodes commented Oct 9, 2024

@aaronrhodes what do you mean about "add a element to my render method"? I am having the same error

Oh sorry that was quite vague! Add a ReactNotifications element to your unit test render method alongside whatever you're testing.

Just realised what happened to my first comment - the html is being stripped out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants