Comments (2)
upgrading @ladle/react requires updating msw due to the peer dependency
msw
is a direct dependency of Ladle and there are no other packages/peerDeps? I don't understand why you couldn't installmsw@1
next to Ladle?
You're right, I was able to do this eventually, it just wasnt quite as intuitive as I thought. When first upgrading my version of ladle, it was automatically updating msw and generating a new mockServiceWorker.js file. If anyone else ends up in this situation, you can resolve it by uninstalling msw after upgrading ladle then reinstalling msw at the version of v1 that you want.
Btw, we are also using Jest + MSW2. It's not that difficult to setup, just need to make sure that you give back
fetch
and other native APIs that Jest is hiding.
I took some time and worked though this as well and was eventually able to restore functionality in jest with v2.
Thanks for the advice, I'll go ahead and close this issue.
from ladle.
upgrading @ladle/react requires updating msw due to the peer dependency
msw
is a direct dependency of Ladle and there are no other packages/peerDeps? I don't understand why you couldn't install msw@1
next to Ladle?
Btw, we are also using Jest + MSW2. It's not that difficult to setup, just need to make sure that you give back fetch
and other native APIs that Jest is hiding.
the msw implementation be created as an independent plugin
I am really trying to avoid that. The setup is not straightforward and supporting both MSW1+2 would add a lot of maintenance burden as well.
from ladle.
Related Issues (20)
- Side panel story name not readable when using longer names or folder nesting HOT 1
- Version 3 supports only React 18+, it's an undocumented breaking change HOT 1
- Deno support HOT 1
- Allow duplicate story name HOT 2
- Missing Accessibility Report button with @ladle/react v3.1.0 and up HOT 2
- ladle.css leaks on @reach/dialog inside stories HOT 1
- Internal server error: Header name must be a valid HTTP token [":path"] HOT 2
- ladle build error HOT 3
- RTL config using MDX code block breaks formatting HOT 1
- Stylesheet ordering bug with @mui/material and styled-components HOT 9
- Range control with a default value of zero does not adopt default value
- Source maps are broken
- MDX anchor links do not work
- Allow exports in `export` block HOT 5
- Toggling view should retail the filter query
- Vite HMR config does not override Ladle default config HOT 2
- Ladle seems to conflict with remix vite plugin HOT 4
- Allow export function which are not in the same file HOT 2
- Code blocks in .mdx files display warnings in browser console HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ladle.