Skip to content

The package at "node_modules/parse/node_modules/ws/lib/stream.js" attempted to import the Node standard library module "stream" #2633

@lawrenehi

Description

@lawrenehi

New Issue Checklist

Issue Description

On react-native with expo - build , the launch/build fails with the following error
if you add events and stream, you get http and https error too

Android Bundling failed 612ms node_modules/expo-router/entry.js (1315 modules)
The package at "node_modules/parse/node_modules/ws/lib/stream.js" attempted to import the Node standard library module "stream".
It failed because the native React runtime does not include the Node standard library.

Steps to reproduce

Create a react native app using

  • npx create-expo-app@latest
  • npm i parse#
  • const Parse = require('parse/react-native.js');
  • npx expo run:android
  • run the app on emulator or mobile

Actual Outcome

App should build

Expected Outcome

Environment

"expo-system-ui": "~5.0.7",
"expo-web-browser": "~14.1.6",
"parse": "^6.1.1",
"react": "19.0.0",
"react-dom": "19.0.0",
"react-native": "0.79.2",

Server
NA

Database
NA

Client

  • Parse JS SDK version: 6.1.1

Logs

Android Bundling failed 612ms node_modules/expo-router/entry.js (1315 modules)
The package at "node_modules/parse/node_modules/ws/lib/stream.js" attempted to import the Node standard library module "stream".
It failed because the native React runtime does not include the Node standard library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions