[Example Bug] | MDB-React | create-next-app outputs errors
See original GitHub issueWhat example does this report relate to?
with-mdbreact-app
What version of Next.js are you using?
10.2.0
What version of Node.js are you using?
15.8.0
What browser are you using?
Firefox
What operating system are you using?
Windows 10
How are you deploying your application?
create-next-app
Describe the Bug
Whenever i try to run the example of mdbreact using npx create-next-app --example with-mdbreact with-mdbreact-app
,
i receive the following output:
Creating a new Next.js app in D:\Users\Win10\Desktop\Visual Studio\Visual Studio Code\Projects\Testings\test-nextjs\with-mdbreact-app.
Downloading files for example with-mdbreact. This might take a moment.
Installing packages. This might take a couple of minutes.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: react@17.0.1
npm ERR! node_modules/react
npm ERR! react@"17.0.1" from the root project
npm ERR! peer react@"*" from mdbreact@5.0.2
npm ERR! node_modules/mdbreact
npm ERR! mdbreact@"^5.0.0" from the root project
npm ERR! 2 more (react-dom, next)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.3.0" from @material-ui/core@3.9.3
npm ERR! node_modules/mdbreact/node_modules/@material-ui/core
npm ERR! @material-ui/core@"3.9.3" from mdbreact@5.0.2
npm ERR! node_modules/mdbreact
npm ERR! mdbreact@"^5.0.0" from the root project
npm ERR!
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.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Win10\AppData\Local\npm-cache\_logs\2021-05-09T06_32_12_044Z-debug.log
Aborting installation.
npm install --loglevel error has failed.
Expected Behavior
It should just install the dependencies i guess with no errors.
To Reproduce
Just run npx create-next-app --example with-mdbreact with-mdbreact-app
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
mdbreact error when running built app
We just purchased and are using mdbreact 4.8.2 Pro with create-react-app v2 and react 16. The app works fine in development with no...
Read more >All Problems Tagged With Whatever - Code Grepper
Get code examples instantly right from your google search results with the Grepper ... tcpdf error: some data has already been output, can't...
Read more >React-Bootstrap Example with Formik marks all error fields ...
Looks like I found the answer: they don't have the necessary line onBlur={handleBlur} /* This is necessary for 'touched' to be populated! */....
Read more >mdbreact - npm
Support MDB developers. Star our GitHub repo; Create pull requests, submit bugs, suggest new features or documentation updates; Follow us on ...
Read more >Troubleshooting common React Native bugs - LogRocket Blog
This troubleshooting guide shares how to easily find and address common React Native bugs. See common error examples.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I just tried again and ended up with different results. Unfortunately, this is still not working properly.
I just tried to install the
mdbreact
example again usingnpx create-next-app --example with-mdbreact with-mdbreact-app
but ended up with the same problem at https://github.com/vercel/next.js/issues/24925#issuecomment-915384815At first I received many warnings but no errors (yet):
npx create-next-app --example with-mdbreact with-mdbreact-app
but then I tried to run it and visit the app and unfurtonately ended up with the same error:
npm run dev