rcaferati / react-awesome-button

React button component. Awesome button is a 3D UI, progress, social and share enabled, animated at 60fps, light weight, performant, production ready react UI button component. 🖥️ 📱
https://awesome-button.caferati.me
MIT License
1.29k stars 131 forks source link

Typeerror with nextjs #141

Open ameliacode opened 1 year ago

ameliacode commented 1 year ago

Hi I was working with react 17 and react 18 with nextjs 12 and 13 respectively.

It worked well in local tho, however, it encountered terrible error in vercel.. I first thought its problem was related with nextjs but after I remove your button component the problem was solved somehow..

I'll leave error message here: TypeError: Cannot read properties of undefined (reading 'transition') : this message was from nextjs 13 and react 18

I think it is somehow related with the useTransition function that was newly released in react 18

SohamSen15 commented 1 year ago

Can you please share an example of your code causing the bug?

ameliacode commented 1 year ago

Hi I noticed this just now. What I remember so far, that typeerror above just invoke in my browser console constantly when hosting in vercel. I just simply add that button to this project It's been 3months and I have finished my project :( so I can't remember it in detail..