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

CustomEvent polyfill problem in SSR mode #1858

Closed
eleon-sqli opened this issue Jun 24, 2020 · 2 comments
Closed

CustomEvent polyfill problem in SSR mode #1858

eleon-sqli opened this issue Jun 24, 2020 · 2 comments

Comments

@eleon-sqli
Copy link

eleon-sqli commented Jun 24, 2020

  • components: polyfill.js
  • reactstrap version #8.5.0

What is happening?

Cannot build a Next.js project in production mode with the last version of reactstrp.

What should be happening?

No problem when using previous reactstrap versions.

Steps to reproduce issue

Just upgrade reactstrap to #8.5.0 and build

Error message in console

Build error occurred
ReferenceError: window is not defined
    at <project root>/node_modules/reactstrap/lib/polyfill.js:4:3
@iamandrewluca
Copy link
Contributor

Fixed in #1855

@eleon-sqli
Copy link
Author

Thanks Andrew :)

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

2 participants