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
The use case you're trying to solve
I've a next.js project which has a ton of old/outdated dependencies which another dev has just hooked in the project
Some of these dependencies are not officially compatible with react 17, but as per test they work ok.
However when using firebase-framework-tools and following all instructions to deploy next projects, on last step of firebase deploy it fails due unmatch dependency versions:
Building a Cloud Function to run this application. This is needed due to:
• non-static route /crm/quadros/[id]
• non-static route /crm/quadros
• non-static route /entrar
• non-static route /perfil/formularios
and right after that fails
because some dependencies doesn't match the react version that is being used.
npm ERR! node_modules/react
npm ERR! react@"^17.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.5.2" from react-to-pdf@0.0.14
npm ERR! node_modules/react-to-pdf
npm ERR! react-to-pdf@"^0.0.14" from the root project
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
this output is the result of the action running the code
[2023-03-10T01:38:59.487Z] Error: Command failed: npm i --omit dev --no-audit
at checkExecSyncError (node:child_process:826:11)
at execSync (node:child_process:900:15)
at prepareFrameworks (/home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/frameworks/index.js:372:42)
at async deploy (/home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/deploy/index.js:53:13)
If it was only this dependency it would be ok, i could upgrade or just remove from project, but this project has around 120 dependencies hooked on it, many of which aren't used, most of which are outdated no longer supported and were hooked by another dev which i'm taking over his project
would be a colossal amount of work to me test one by one and try to solve this version issues individually, therefore i know that if is just do npm install --force they work fine
how can i make the webexperiments pass flags for this call?
The text was updated successfully, but these errors were encountered:
The use case you're trying to solve
I've a next.js project which has a ton of old/outdated dependencies which another dev has just hooked in the project
Some of these dependencies are not officially compatible with react 17, but as per test they work ok.
However when using firebase-framework-tools and following all instructions to deploy next projects, on last step of
firebase deploy
it fails due unmatch dependency versions:and right after that fails
because some dependencies doesn't match the react version that is being used.
If it was only this dependency it would be ok, i could upgrade or just remove from project, but this project has around 120 dependencies hooked on it, many of which aren't used, most of which are outdated no longer supported and were hooked by another dev which i'm taking over his project
would be a colossal amount of work to me test one by one and try to solve this version issues individually, therefore i know that if is just do
npm install --force
they work finehow can i make the webexperiments pass flags for this call?
The text was updated successfully, but these errors were encountered: