Skip to content
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

Reference Error of windows not defined errors #10

Open
efleurine opened this issue Mar 13, 2019 · 7 comments
Open

Reference Error of windows not defined errors #10

efleurine opened this issue Mar 13, 2019 · 7 comments

Comments

@efleurine
Copy link

By just doing a import { TextField } from "final-form-material-ui"; I am gettting a Reference Error of windows which is not defined.

@efleurine
Copy link
Author

I imported the original TextField from material-ui and it works without problems.

@IskanderMustafin
Copy link

IskanderMustafin commented Mar 23, 2019

Experiencing same error during SSR. I think root of the problem in webpack's config: libraryTarget: 'umd'. Probably need to change to: libraryTarget: 'commonjs'

@jsphweid
Copy link

jsphweid commented Apr 7, 2019

This is happening to me using Gatsby, unfortunately (which statically renders). Hopefully the fix is as easy as changing the webpack config. For now I'm manually getting by by simply copying and pasting the code from this lib into my project :/

@andrefox333
Copy link

Updates? Gatsby is definitely blowing up on production build.

@octopusOnJellyfish
Copy link

Nextjs has the same issue

@de3web
Copy link

de3web commented Dec 17, 2020

Gatsby issues here as well, had to stop using the library. Hopefully 2021 is the year!

@lookfirst
Copy link

@de3web Just a friendly reminder that there is another library you can use now. Maintained and tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants