Skip to content

Trying to work with Next.js #143

Closed Answered by gilbarbara
zzulanas asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @zzulanas

Create a wrapper component for the player and add 'use client'; before anything else.
The Spotify Web Playback SDK is a client-only library dependent on the window.

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@AnmarRahman
Comment options

Answer selected by gilbarbara
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants