Closed cristiano-belloni closed 1 year ago
It looks to me like it might actually be the events
package, which memory-level
uses but doesn't have as a dependency. Can you try just adding "events": "^3.3.0"
to your package.json dependencies and seeing if that works?
It looks to me like it might actually be the
events
package, whichmemory-level
uses but doesn't have as a dependency. Can you try just adding"events": "^3.3.0"
to your package.json dependencies and seeing if that works?
That works. I don't see memory-level
using events
though (this is its only source file). I suppose it's one of its dependencies?
Yeah, memory-level
extends abstract-level
which extends EventEmitter
here. events
is a native module in NodeJS, so there's a gray area around who's responsible for providing the polyfill in the browsers - some bundlers do it automatically, but not Vite.
I just published v0.2.1
which adds events
as a direct dependency.
I just published
v0.2.1
which addsevents
as a direct dependency.
Thanks!
See reproduction here: https://codesandbox.io/p/sandbox/blissful-sanne-x3tx83?file=%2Fsrc%2FApp.tsx%3A7%2C18
This results in this error (you can open the app in an external window at this url: https://x3tx83-5173.csb.app/):
From a brief search, it looks like it's due to a class circular dependency.