nextjs-toploader icon indicating copy to clipboard operation
nextjs-toploader copied to clipboard

Please Update the react version so that It can support React 19 RC.

Open meprazhant opened this issue 1 year ago • 3 comments

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.

meprazhant avatar Oct 26 '24 05:10 meprazhant

Can you please provide the error reproduction, and hosted vercel deployment can help me figure it out

TheSGJ avatar Oct 30 '24 16:10 TheSGJ

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

davecarlson avatar Nov 16 '24 13:11 davecarlson

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

EbukaMoses avatar Jun 03 '25 11:06 EbukaMoses