-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Form action triggers drizzle polyfill issues. #203
Labels
bug
Something isn't working
Comments
This is a known problem, see QwikDev/qwik#5160. I will try to fix it in the next 3 months. A workaround could be to wrap you code into |
oh okay, thanks for the quick reply. Will take a look later. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For the last 24 hours I have been unable to build my project. It was giving me this error
So, apperently drizzle uses
perf_hooks
(and many other node libs) internally which vite is unable to polyfill outside of server.I managed to polyfill them, but each time a new error was appearing and a new lib required polyfill etc which made me realize polyfilling is not the way to go.
Afaik drizzle is supposed to only run on the server and therefore inside
formAction
it is supposed to be on the server. After some testing I made I found out that removing drizzle from formAction solved the issue and build was successful. It works perfectly onrouteAction$
,globalAction$
androuteLoader$
. Iirc,formAction
builds on top onglobalAction
and therefore this was supposed to not be a problem.I must be missing something.
I will attach a sanbox or repo link below
The text was updated successfully, but these errors were encountered: