Replies: 3 comments 4 replies
-
Hi, @Grohden. Is that a custom eslint rule/plugin by any chance? I remember seeing a popular one that has some trouble resolving conditional exports in package.json. MSW does define the Line 16 in 93d9f86 So the original error from eslint makes little sense. Try researching around that particular rule and see if you find any issues related to it. This has to be addressed on the eslint configuration level. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I use settings: {
'import/resolver': {
alias: {
map: [
['msw/browser', './node_modules/msw/browser']
],
}
}
} |
Beta Was this translation helpful? Give feedback.
-
Yo, great docs about the upgrade, I think I have the same frustrations with jest/jsdom that the authors have found... but the docs helped at lot!
But one thing that didn't work here is eslint, I have two errors with it, the first being:
and the second is:
I can fix them with
But I'm curious if there's a better solution...I imagine this has something to do with esm shenanigans?
Beta Was this translation helpful? Give feedback.
All reactions