You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NextTopLoader stopped working on react based frameworks like Vite on nextjs-toploader v2.6.12
To fix this issue update nextjs-toploader to latest i.e version 3.6.13 or the newer version.
Why this happened
This happened in order to give standalone support to pages router via exporting its new a component that was PagesTopLoader directly to index.tsx component which compiler passed everything from one file because NextTopLoader was exporting everything by default. And since we know that react render only client side components in previous versions that nextjs-toploader made this error happened. react was importing PagesTopLoader through entry point file which Contains SSR components like Router from next/router
The text was updated successfully, but these errors were encountered:
NextTopLoader stopped working on react based frameworks like Vite on nextjs-toploader v2.6.12
To fix this issue update nextjs-toploader to latest i.e
version 3.6.13
or the newer version.Why this happened
pages router
via exporting its new a component that wasPagesTopLoader
directly to index.tsx component which compiler passed everything from one file becauseNextTopLoader
was exporting everything by default. And since we know that react render only client side components in previous versions thatnextjs-toploader
made this error happened. react was importing PagesTopLoader through entry point file which Contains SSR components likeRouter
fromnext/router
The text was updated successfully, but these errors were encountered: