Closed sorooshjaberi closed 3 months ago
When calling Parse.initialize with the proper arguments in my vite react application, I get this error: EventEmitter is not a constructor
This is the corresponding code:
No errors
Install the events package pnpm install events
pnpm install events
Server
Ubuntu 23.10
Local
Database
MongoDB
back4app
Client
5.1.0
Duplicate https://github.com/parse-community/Parse-SDK-JS/issues/1766
You need to polyfill the event emitter.
We could replace the node event emitter with a custom isomorphic event emitter.
New Issue Checklist
Issue Description
When calling Parse.initialize with the proper arguments in my vite react application, I get this error: EventEmitter is not a constructor
This is the corresponding code:
Steps to reproduce
Actual Outcome
Expected Outcome
No errors
Workaround
Install the events package
pnpm install events
Environment
Server
Ubuntu 23.10
Local
Database
MongoDB
back4app
Client
5.1.0
Logs