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

Error in SSR environments #28

Open
aaronbarnardsound opened this issue Nov 14, 2019 · 0 comments
Open

Error in SSR environments #28

aaronbarnardsound opened this issue Nov 14, 2019 · 0 comments

Comments

@aaronbarnardsound
Copy link

Getting an error in server side rendering environments when the app has been deployed. The error doesn't show up in a dev environment though.

TypeError: "Super expression must either be null or a function, not undefined"

Steps to reproduce: (as successfully deploying SSR apps can be quite the challenge!)

  • Head to ZEIT for instructions to create a next.js project.
  • Signup for a ZEIT account
  • Install, import and initialize Squarelink in pages/index.js
  • run yarn build
  • run now login
  • run now --prod
  • Then navigate to the link that is created and you should see the same error.

Just a heads up, there is some weird caching thing that next.js or ZEIT does, making it really hard to debug when you make changes. I found myself creating a new project and doing a fresh deploy for each change I made (might not be necessary).

We have temporarily removed Squarelink from our bundle so that we can unblock a customer, but will be adding it back in once we make some changes to our code base so that the wallets are dynamically imported (so that this particular customer can just not include it) or until this bug is fixed on your end (whichever comes first).

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

1 participant