We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This component cannot be used with NextJS.
Expected Behavior: A simple page should build and render.
Actual Behavior: A ReferenceError: window is not defined is thrown.
ReferenceError: window is not defined
CodeSandbox for Minimal Example: https://codesandbox.io/s/nextjs-banner-test-vr6pt?file=/pages/index.js
Notes: I could not locate any code in the repository which uses window directly. It may be used by some module that this component calls.
window
Version Info:
React v16.13.0 NextJS v9.3.0 material-ui-banner v1.4.3
The text was updated successfully, but these errors were encountered:
Workaround:
... const [Banner, setBanner] = React.useState<React.FC<any>>() ... React.useEffect(() => { setBanner(require('material-ui-banner').Banner) }, []) ... <Banner open />
Sorry, something went wrong.
No branches or pull requests
This component cannot be used with NextJS.
Expected Behavior: A simple page should build and render.
Actual Behavior: A
ReferenceError: window is not defined
is thrown.CodeSandbox for Minimal Example: https://codesandbox.io/s/nextjs-banner-test-vr6pt?file=/pages/index.js
Notes: I could not locate any code in the repository which uses
window
directly. It may be used by some module that this component calls.Version Info:
The text was updated successfully, but these errors were encountered: