-
Notifications
You must be signed in to change notification settings - Fork 311
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
Upgrade to newer form-data SSR error #362
Comments
It would be nice not to include packages that write to the global object period. Easier said than done because it's not something one typically finds out about until things break.. but packages like this are often included in other packages, which causes a big old pain chain. |
@jasonkuhrt I ran
locally and all the tests passed. Is it possible to make and release this change? |
NOTE: form-data/form-data#496 has not been merged in yet. I got this working by patching You can also override the form-data dependency via:
But note, this isn't sufficient yet as form-data has yet to merge in the fix, thus the need for the patch! |
Fixed by #501. |
I have an preact SSR application and when I try to build it
preact build
I recieve:package form-data fixed this issue here form-data/form-data#496
Since the SSR does not have a window-object we need to check that it exists, no requests are performed on the server but the rendering will complain about this use of the window-variable.
the solution to this is here, and they have added fix
So please upgrade to newer version of form-data
The text was updated successfully, but these errors were encountered: