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

./node_modules/cheerio/dist/esm/index.js Cannot find module: 'node:stream'. Make sure this package is installed. #4012

Open
NiharikaSrinivasa opened this issue Aug 13, 2024 · 6 comments

Comments

@NiharikaSrinivasa
Copy link

NiharikaSrinivasa commented Aug 13, 2024

./node_modules/cheerio/dist/esm/index.js
Cannot find module: 'node:stream'. Make sure this package is installed.

React Version :17
Node version :16
facing this issue, can you please suggest?

@kabbagepatch
Copy link

Same issue. Had to add "cheerio": "1.0.0-rc.12" to my package.json dependencies to fix the issue temporarily but would love a real fix

@NiharikaSrinivasa
Copy link
Author

Thanks @kabbagepatch this really saved my day

@ChristopherGabba
Copy link

ChristopherGabba commented Aug 24, 2024

Same issue with React Native Expo:
iOS Bundling failed 11622ms node_modules/expo/AppEntry.js (4228 modules) The package at "node_modules/cheerio/dist/commonjs/index.js" attempted to import the Node standard library module "node:stream". It failed because the native React runtime does not include the Node standard library.

I'm still getting this issue even with "cheerio": "^1.0.0-rc.11" and "cheerio": "^1.0.0-rc.12

@michaelfaith
Copy link

Node 16 is no longer supported

@ChristopherGabba
Copy link

I'm facing this issue on Node 22

@michaelfaith
Copy link

I'm facing this issue on Node 22

I was responding to the original issue, which is due to an old version of node. Yours is due to not being in a node-based environment. This is the issue for React Native: #4005

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants