-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
TypeError: _sortablejs.Swap is not a constructor #330
Comments
Hi, I'm also having exactly this problem on NextJS, I followed installation instructions to the letter and then added the code for SSR from @lijinke666 's answer - and I'm still getting the "TypeError: _sortablejs.Swap is not a constructor" error. Here's my console in case it can help:
Any help would be greatly appreciated as this looks like an awesome player. Cheers Terry |
if anyone is having the same issue declare PlayerWithNoSSR only in the page that is importing the component not in _app.js const PlayerWithNoSSR = dynamic(() => import("../components/Player"), { and call PlayerWithNoSSR instead of Player Also declare Player as a const Player = () => () Hope that helps! |
this works for |
Version
tested on 4.22.1
Description
Steps
code added like this
I have added this code in a route of my NextJS app. App is not compiling successfully after adding this and getting this error.
The text was updated successfully, but these errors were encountered: