Lesson 10: error while deploying with Fleek #5475
Unanswered
theooldlyon
asked this question in
Q&A
Replies: 1 comment
-
|
@theooldlyon This is a dependencies conflicts issue, try to use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys, I'm getting these errors when deploying my 'nextjs-smartcontract-lottery-fccc' project with Fleek.
`Deploy started at 10:01:11 AM 05/12/2023
10:01:12 AM 05/12/2023: Deploy started
10:01:14 AM 05/12/2023: Docker image: 'fleek/next-js:node-16'
10:01:14 AM 05/12/2023: Build command: 'npm install && npm run build && npm run export'
10:01:14 AM 05/12/2023: Triggering build execution...
10:02:11 AM 05/12/2023: npm notice
10:02:11 AM 05/12/2023: npm notice New major version of npm available! 7.18.1 -> 9.6.6
10:02:11 AM 05/12/2023: npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.6.6
10:02:11 AM 05/12/2023: npm notice Run
npm install -g npm@9.6.6to update!10:02:11 AM 05/12/2023: npm notice
10:02:11 AM 05/12/2023: npm ERR! code ERESOLVE
10:02:11 AM 05/12/2023: npm ERR! ERESOLVE unable to resolve dependency tree
10:02:11 AM 05/12/2023: npm ERR!
10:02:11 AM 05/12/2023: npm ERR! Found: react@18.0.0
10:02:11 AM 05/12/2023: npm ERR! node_modules/react
10:02:11 AM 05/12/2023: npm ERR! react@"18.0.0" from the root project
10:02:11 AM 05/12/2023: npm ERR! peer react@"^17.0.2 || ^18.0.0-0" from next@12.1.5
10:02:11 AM 05/12/2023: npm ERR! node_modules/next
10:02:11 AM 05/12/2023: npm ERR! next@"12.1.5" from the root project
10:02:11 AM 05/12/2023: npm ERR! peer next@">=10.2.0" from eslint-config-next@12.1.5
10:02:11 AM 05/12/2023: npm ERR! node_modules/eslint-config-next
10:02:11 AM 05/12/2023: npm ERR! dev eslint-config-next@"12.1.5" from the root project
10:02:11 AM 05/12/2023: npm ERR! 4 more (react-dom, react-moralis, web3uikit, styled-jsx)
10:02:11 AM 05/12/2023: npm ERR!
10:02:11 AM 05/12/2023: npm ERR! Could not resolve dependency:
10:02:11 AM 05/12/2023: npm ERR! peer react@"^16.8.0 || ^17.0.1" from use-immer@0.6.0
10:02:11 AM 05/12/2023: npm ERR! node_modules/react-moralis/node_modules/use-immer
10:02:11 AM 05/12/2023: npm ERR! use-immer@"^0.6.0" from react-moralis@1.4.2
10:02:11 AM 05/12/2023: npm ERR! node_modules/react-moralis
10:02:11 AM 05/12/2023: npm ERR! react-moralis@"^1.4.0" from the root project
10:02:11 AM 05/12/2023: npm ERR! 1 more (web3uikit)
10:02:11 AM 05/12/2023: npm ERR!
10:02:11 AM 05/12/2023: npm ERR! Fix the upstream dependency conflict, or retry
10:02:11 AM 05/12/2023: npm ERR! this command with --force, or --legacy-peer-deps
10:02:11 AM 05/12/2023: npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
10:02:11 AM 05/12/2023: npm ERR!
10:02:11 AM 05/12/2023: npm ERR! See /root/.npm/eresolve-report.txt for a full report.
10:02:11 AM 05/12/2023: npm ERR! A complete log of this run can be found in:
10:02:11 AM 05/12/2023: npm ERR! /root/.npm/_logs/2023-05-12T08_02_11_042Z-debug.log
10:02:35 AM 05/12/2023: Error occured during the build.`
I tried reinstalling and upgrading all the dependencies, but I still get these multiple errors.
Can anyone help me, please?
Beta Was this translation helpful? Give feedback.
All reactions