#Handler is not a function, mitt.js

32 messages · Page 1 of 1 (latest)

cinder jackalBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

worldly yacht
#

Folder structure

#

next 14.1

#

But same errors happening in 12, 13

#

tried all versions

indigo niche
#

havent really used mitt but maybe this post will brind some light to the problem

worldly yacht
#

@indigo niche Checked this already

#

no solutions provided here

#

That work

#

Especially if Link tags are failing to work

indigo niche
#

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 :/

worldly yacht
#

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

#

It should have been closeModal not setCloseModal on the router.events functions

#

🥲

#

They are stopping route changes

indigo niche
#

xD

#

noice, so its fixed?

worldly yacht
#

Omgg finally yess

#

thank you

#

been sending a year on this

indigo niche
#

sweet, glad I could help somewhat

#

: )

#

time to refactor and keep going now hehe