Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - Module not found: Can't resolve '@react-stately/collections' #541

Closed
pprathameshmore opened this issue Jun 12, 2022 · 4 comments
Closed
Labels
🐛 Type: Bug Something isn't working

Comments

@pprathameshmore
Copy link

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!

image

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

image

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

  1. Install the latest version of NextUI
  2. Run the app in development mode.

Expected behavior

As a developer, I should I able to use NextUI without any errors!

Screenshots or Videos

image

Operating System Version

Windows 10

Browser

Other (add additonal context)

@pprathameshmore pprathameshmore added the 🐛 Type: Bug Something isn't working label Jun 12, 2022
@tianenpang
Copy link
Member

Please share a full repro case of this issue, I can not reproduce it.

@pprathameshmore
Copy link
Author

https://github.com/takeKode/takeKode-frontend
Please checkout develop branch

@tianenpang
Copy link
Member

Hey @pprathameshmore Looks like it's working great.

# 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

Screenshot of home and code pages.

ss

@pprathameshmore
Copy link
Author

Thank you! It is working now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants