Closed lgibso34 closed 10 months ago
Having same issue without even having @msw/data
on my package list.
After digging more into this I think the root is that different msw libraries have this dependency pinned at different versions and given it's a pre-1.0.0 release there are breaking changes shipped in minor versions. If you're using npm
you can run npm why strict-event-emitter
to show which packages have which dependency.
I think this is solved now with https://github.com/mswjs/data/pull/278 being merged. I recently had another project that used these libraries and I did not see this issue resurface.
package.json
server.ts
ran with
npx ts-node-dev server.ts
throws an errorif you
yarn remove @mswjs/data
it works fine. However, if you need to keep@mswjs/data
you have to addyarn add strict-event-emitter@^0.4.0
and it will work.Hopefully you all can figure this one out. I couldn't find an older version of
strict-event-emitter
laying around for it to fail. Not sure what the issue is.Thanks!