mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
59b76e42ba
https://github.com/vercel/next.js/pull/98330 revealed theat `@next/third-parties` never worked with prereleases after 16.0. Now we [update `peerDependencies` similar to what we do for preview builds already](https://github.com/vercel/next.js/blob/27f679224e2660971377f855ced51093462734d8/scripts/create-preview-tarballs.js#L130-L132) (we should unify both eventually to go through the same flow). Fixes ``` npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree npm error npm error While resolving: undefined@undefined npm error Found: next@16.4.0-canary.22 npm error node_modules/next npm error next@"16.4.0-canary.22" from the root project npm error npm error Could not resolve dependency: npm error peer next@"^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0-beta.0" from @next/third-parties@16.4.0-canary.22 npm error node_modules/@next/third-parties npm error @next/third-parties@"16.4.0-canary.22" from the root project ``` -- https://github.com/vercel/next.js/actions/runs/34291905918/attempts/2