FormidableLabs / jest-next-dynamic

Resolve Next.js dynamic import components in Jest tests
MIT License
69 stars 7 forks source link

Next.js 9.1.2 : TypeError: LoadableComponent.preload is not a function #13

Closed Mohsan1995 closed 4 years ago

Mohsan1995 commented 4 years ago

Since the release 9.1.2, I have this error in all of my test js with dynamic component I have this error: TypeError: LoadableComponent.preload is not a function.

Did you have this problem ?

reinierpd commented 4 years ago

Hi @Mohsan1995 , Im having the same issue after upgrade to Next 9.3. Did you found any solution to this?

Mohsan1995 commented 4 years ago

Hi,

Did you update jest-next-dynamic ?

On Tue 24 Mar 2020 at 17:53, Reinier Ruiz Ramos notifications@github.com wrote:

Hi @Mohsan1995 https://github.com/Mohsan1995 , Im having the same issue after upgrade to Next 9.3. Did you found any solution to this?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/FormidableLabs/jest-next-dynamic/issues/13#issuecomment-603364590, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOKX44U4ZQU7N2GW525J63RJDQQRANCNFSM4LOT3T6A .

reinierpd commented 4 years ago

Hi, Did you update jest-next-dynamic ? On Tue 24 Mar 2020 at 17:53, Reinier Ruiz Ramos @.***> wrote: Hi @Mohsan1995 https://github.com/Mohsan1995 , Im having the same issue after upgrade to Next 9.3. Did you found any solution to this? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#13 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOKX44U4ZQU7N2GW525J63RJDQQRANCNFSM4LOT3T6A .

I missed that part. Now it works. Thanx :)