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
I was working on the Next.js app. I installed the react-use package in my Next.js project! Suddenly Next.js started throwing errors!
Then, I searched for similar errors on Stackoverflow. Some of them suggested removing node_modules and package-lock.json and trying to reinstall npm packages. I did so, but nothing seems working! Then restarted VSCode and computer, but the error was still there!
Even I tried to install that package, which is shown in error, but again it throwing an error for another package.
I am not sure why suddenly started throwing errors!
# try to clean the cache and delete node_modules then install it again
npm cache verify
npm cache clean --force
# delete node_modules before install
npm install
Here is my environment.
npm 8.11.0
yarn 1.22.19
Node 16.15.1
OS Windows 10
Describe the bug
I was working on the Next.js app. I installed the react-use package in my Next.js project! Suddenly Next.js started throwing errors!
Then, I searched for similar errors on Stackoverflow. Some of them suggested removing node_modules and package-lock.json and trying to reinstall npm packages. I did so, but nothing seems working! Then restarted VSCode and computer, but the error was still there!
Even I tried to install that package, which is shown in error, but again it throwing an error for another package.
I am not sure why suddenly started throwing errors!
This is my package.json
Your Example Website or App
https://stackoverflow.com/questions/72589638/module-not-found-cant-resolve-react-stately-collections-in-next-js-app
Steps to Reproduce the Bug or Issue
Expected behavior
As a developer, I should I able to use NextUI without any errors!
Screenshots or Videos
Operating System Version
Windows 10
Browser
Other (add additonal context)
The text was updated successfully, but these errors were encountered: