Handler is not a function, mitt.js
Answered
Pip gall wasp posted this in #help-forum
Original message was deleted.
Answered by Pip gall wasp
It should have been closeModal not setCloseModal on the router.events functions
31 Replies
Pip gall wasp
Folder structure
next 14.1
But same errors happening in 12, 13
tried all versions
Peruvian anchoveta
havent really used mitt but maybe this post will brind some light to the problem
Pip gall wasp
@Peruvian anchoveta Checked this already
no solutions provided here
That work
Especially if Link tags are failing to work
Peruvian anchoveta
hmmm, all I can say is check what are the breaking changes on nextjs 13+ and react 18 since those are the main things that could break your build. As stated in the github issue, it might only be on dev and not production. overall it might be a breaking change due to this strict mode that was mentioned.
thats all I got for now since I havent used mitt :/
I think i found the error
maybe the post was right
I realized my project also uses modal
but then nothing seemed out of the blue
Pip gall wasp
It should have been closeModal not setCloseModal on the router.events functions
Answer
Pip gall wasp
🥲
They are stopping route changes
Peruvian anchoveta
xD
noice, so its fixed?
Pip gall wasp
Omgg finally yess
thank you
been sending a year on this
Peruvian anchoveta
sweet, glad I could help somewhat
: )
time to refactor and keep going now hehe