You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The correct way to handle this is creating an external API and fetch that API from Next.js, because Next.js will need to be able to fetch data on both the server + client side, if you use <Link> getInitialProps is executed on the client side.
Bug report
Describe the bug
I'm trying to import Tabletop.js and getting some require errors around it. It appears the client bundle is looking for server side packages.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
next dev
Expected behavior
Tabletop has a server side component and a client side component. So I think I was hoping this would work realizing that it might not 😄
Screenshots
Errors I get when trying to do this.
System information
Additional context
I got around this by creating a custom express server but I'd really love to not have to do that given that Now v2 doesn't really recommend this approach to deploy. https://spectrum.chat/?thread=ebd1f14e-cacb-48cb-9df1-97b4ceca6b87
The text was updated successfully, but these errors were encountered: