Open John4266 opened 3 years ago
@John4266 did you figure this out?
@John4266 did you figure this out?
I just tried again and ended up with different results. Unfortunately, this is still not working properly.
$ npm run dev
> dev
> next dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5
event - compiled successfully
event - build page: /
wait - compiling...
event - build page: /next/dist/pages/_error
event - compiled successfully
error - Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.
Same here. I'm on Windows 10 as well. If I add the --legacy-peer-deps
option to the npm install, the error goes away.
Please verify that your issue can be recreated with next@canary
.
please verify canary
label?We noticed the provided reproduction was using an older version of Next.js, instead of canary
.
The canary version of Next.js ships daily and includes all features and fixes that have not been released to the stable version yet. You can think of canary as a public beta. Some issues may already be fixed in the canary version, so please verify that your issue reproduces by running npm install next@canary
and test it in your project, using your reproduction steps.
If the issue does not reproduce with the canary
version, then it has already been fixed and this issue can be closed.
canary
?The safest way is to install next@canary
in your project and test it, but you can also search through closed Next.js issues for duplicates or check the Next.js releases.
canary
now?Next.js does not backport bug fixes to older versions of Next.js. Instead, we are trying to introduce only a minimal amount of breaking changes between major releases.
An issue with the please verify canary
that receives no meaningful activity (e.g. new comments that acknowledge verification against canary
) will be automatically closed and locked after 30 days.
If your issue has not been resolved in that time and it has been closed/locked, please open a new issue, with the required reproduction, using next@canary
.
Anyone experiencing the same issue is welcome to provide a minimal reproduction following the above steps. Furthermore, you can upvote the issue using the :+1: reaction on the topmost comment (please do not comment "I have the same issue" without repro steps). Then, we can sort issues by votes to prioritize.
We look into every Next.js issue and constantly monitor open issues for new comments.
However, sometimes we might miss one or two due to the popularity/high traffic of the repository. We apologize, and kindly ask you to refrain from tagging core maintainers, as that will usually not result in increased priority.
Upvoting issues to show your interest will help us prioritize and address them as quickly as possible. That said, every issue is important to us, and if an issue gets closed by accident, we encourage you to open a new one linking to the old issue and we will look into it.
I just tried to install the mdbreact
example again using npx 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-915384815
At first I received many warnings but no errors (yet):
but then I tried to run it and visit the app and unfurtonately ended up with the same error:
What 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: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