Skip to content

Node.js core modules errors on Metro bundle #2528

Description

Hello,

I'm working on upgrading my react native application to use React Native 0.79.3, React 19, and Expo 53.

When I upgraded to 0.79.3 and React 19, I ran into this error:

error Unable to resolve module util from /../../../../node_modules/contentful/dist/contentful.cjs: util could not be found within the project or in these directories:
  node_modules
  268 |
  269 | var Stream$2 = require$$0$1.Stream;
> 270 | var util$3 = require$$1;
      |     ^^^^^^^^^^^^^^^^^^^
  271 | var delayed_stream = DelayedStream$1;
  272 | function DelayedStream$1() {
  273 |   this.source = null;.

I'm on Contentful version ^11.7.0 and was prior to this upgrade so not sure why this is an issue now.

Activity

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions