nextjs-toploader
nextjs-toploader copied to clipboard
Please Update the react version so that It can support React 19 RC.
When I try to install nextjs-toploader in NEXT 15 (React 19), it shows Peer dependencies error, and even tho I may install it with --force flag in locahost, but when in production, it crashes.
Can you please provide the error reproduction, and hosted vercel deployment can help me figure it out
import { PagesTopLoader } from "nextjs-toploader/pages";
<PagesTopLoader height={5} color={site.color || "#00a818"} />
Error: Failed to load external module nextjs-toploader/pages: Error: Cannot find module 'next/dist/server/route-modules/pages/vendored/contexts/head-manager-context'
Require stack:
- /Users/d/Code/proj/node_modules/next/dist/client/script.js
- /Users/d/Code/proj/node_modules/next/dist/shared/lib/router/router.js
- /Users/d/Code/proj/node_modules/next/dist/client/router.js
- /Users/d/Code/proj/node_modules/next/router.js
- /Users/d/Code/proj/node_modules/nextjs-toploader/dist/pages.js
- /Users/d/Code/proj/apps/agency-frontend/.next/server/chunks/ssr/[turbopack]_runtime.js
- /Users/d/Code/proj/apps/agency-frontend/.next/server/pages/_document.js
- /Users/d/Code/proj/apps/agency-frontend/node_modules/next/dist/server/require.js
- /Users/d/Code/proj/apps/agency-frontend/node_modules/next/dist/server/load-components.js
- /Users/d/Code/proj/apps/agency-frontend/node_modules/next/dist/build/utils.js
- /Users/d/Code/proj/apps/agency-frontend/node_modules/next/dist/build/swc/options.js
- /Users/d/Code/proj/apps/agency-frontend/node_modules/next/dist/build/swc/index.js
- /Users/d/Code/proj/apps/agency-frontend/node_modules/next/dist/build/analysis/parse-module.js
- /Users/d/Code/proj/apps/agency-frontend/node_modules/next/dist/build/analysis/get-page-static-info.js
- /Users/d/Code/proj/apps/agency-frontend/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js
- /Users/d/Code/proj/apps/agency-frontend/node_modules/next/dist/server/lib/router-server.js
- /Users/d/Code/proj/apps/agency-frontend/node_modules/next/dist/server/lib/start-server.js
Hi, with 4 to 5 years of experience in React, Next, Typescript, Tailwind CSS and core CSS. I have over the years built React/Nextjs project as a person and with teams, i believe that if assign this task i will be able to fix it. Thanks as i look forward to hearing from you