gilbarbara / react-spotify-web-playback

A simple player for Spotify's web playback
https://react-spotify-web-playback.gilbarbara.dev/
MIT License
324 stars 70 forks source link

TypeError: (0 , memoize_one_1.default) is not a function #107

Closed mellie192 closed 2 years ago

mellie192 commented 2 years ago

Describe the bug When trying to render the player, I get the following error: TypeError: (0 , memoize_one_1.default) is not a function

To Reproduce Steps to reproduce the behavior:

  1. Create a new NextJS project
  2. Import the player in pages/index.js

My specs:

gilbarbara commented 2 years ago

hey @mellie192

This library is a wrapper for the Spotify Web Playback SDK that only works in the browser, so it doesn't support SSR. So you'll need to render it AFTER the component is mounted in the client.

Anyway, as stated in the issue template, issues without a codesandbox example will likely be ignored.