-
-
Notifications
You must be signed in to change notification settings - Fork 244
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
useProxy macro failing with vite #299
Comments
Thanks for reporting. I never used vite other than quick start, but probably, there are some incompatibilities that we could fix on our end. @Aslemammad Would you be interested in looking into this? |
Wait, are we sure if this is vite only issue? @naturalethic Can you try to reproduce the issue with codesandbox? |
Works fine here: https://codesandbox.io/s/eloquent-herschel-ig44g I'll try to figure out repro'ing the error on there with vite in the morning. Edit: I'm not sure I can use vite on codesandbox ? |
thanks. so, it's vite only issue. |
I did not mention I'm using Typescript, which may be the issue, rather than vite. Edit: Typescript is not the issue. I've tried a number of bundlers, and the macro only works with ones that are backed by webpack. I don't really want to become an expert in macros or bundling, but if anyone is interested, for vite at least, you may need to rewrite with https://github.com/typed-macro/typed-macro |
To sum up, the current |
@dai-shi I can work on this, what are the plans/instructions? |
@Aslemammad I guess you would first need to learn typed-macro (or find some alternatives). |
Using:
Source:
Error:
The text was updated successfully, but these errors were encountered: