-
-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup failed to resolve import "wretch/middlewares" #160
Comments
Hey @sh-ravan, Thanks for reporting the issue 🙏 , I managed to reproduce and this is related to the subpath exports. I'm looking into it and will publish a fix asap but in the meatime you should be able to import from the nested files instead of the index: import { retry } from "wretch/middlewares/retry" |
Ah, thanks for the quick resolution mate! Also, heckin cool library. Good riddance axios :P |
should solve #160 Importing from `wretch/middlewares` and `wretch/addons` should work properly now.
Haha thanks! 😄 I just released |
I just tested it, the new version works perfectly! ⚡ |
I can't get the built-in middleware to work in my Vite project. I have
"wretch": "^2.3.0"
installed but when I try to build it, it throws an error that says,Rollup failed to resolve import "wretch/middlewares"
. Looks like it's something to do with the bundler as it can be reproduced in both these places:https://stackblitz.com/edit/vitejs-vite-cbj21z
https://codesandbox.io/p/sandbox/competent-elbakyan-129ojg
The text was updated successfully, but these errors were encountered: