Open UNIDY2002 opened 3 months ago
We're using turtle cli to do builds with React Native and error with the new Cheerio 1.0.0 release. There doesn't appear to be a way to change the package.json that turtle uses internally for the React Native build. If anyone has a work around for this please let me know.
same error
This new tag should've been released with 2.x.x instead of 1.x.x
Auto upgrade from stable 1.0.0-rc.12 to 1.0.0 causes issues due to node version (node:: imports are not supported in node 14)
@grahamrb and to anyone else facing this issue:
I recommend you to ADD FIXED version set to the previous version in your dependencies/devDependencies of package.json so that any internal packages importing this package inherit this from your parent app :
"devDependencies": { "cheerio": "1.0.0-rc.12", }
use below command to verify that any internal dependency is inheriting the package from parent ( in my case it was enzyme )
npm ls cheerio
├── cheerio@1.0.0-rc.12 └─┬ enzyme@3.11.0 └── cheerio@1.0.0-rc.12 deduped
I am also experiencing this error when upgrading:
iOS Bundling failed 10976ms node_modules/expo/AppEntry.js (4227 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.
Reverting to 1.0.0-rc.12 should fix issue
same issue. I hope to fix this issue
Minimal example: https://github.com/thu-info-community/thu-info-app/actions/runs/10414518614/job/28843638237?pr=587
Steps to reproduce: