dumbmatter / fakeIndexedDB

A pure JS in-memory implementation of the IndexedDB API
Apache License 2.0
562 stars 69 forks source link

fake-indexeddb fails when happy-dom is loaded prior to fake-indexeddb #82

Closed philkunz closed 1 year ago

philkunz commented 1 year ago

fake-indexeddb fails when happy-dom is loaded prior to fake-indexeddb

dumbmatter commented 1 year ago

Can you provide a minimal reproduction? I tried to make one, but it works fine https://github.com/dumbmatter/fakeIndexedDB-82

philkunz commented 1 year ago

strangely enough it also works in a web demo: https://stackblitz.com/edit/indexeddb-happydom?file=package.json

philkunz commented 1 year ago

Will dig a little deeper, into why it fails in the original setup when loaded in this oder, and suceeds when reversed.