-
Notifications
You must be signed in to change notification settings - Fork 380
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
NextJS Build fails #137
Comments
Did you get this to work? |
Have you tried using it inside useEffect? This way the code is only executed on the client.
Edit: useNoSleepWakeLock is this react hook: |
Here is what I ended up doing:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I implemented NoSleep into my NextJS App and tried to build on Vercel but the process unfortunately failed. See the server log below.
On my local machine it's not throwing an error.
NextJS-Version: 12.0.1
EDIT: I see there has been a ticket already concerning SSR and a workaround: https://github.com/richtr/NoSleep.js/pull/106
Is there a way to deploy my project via build process on Vercel with SSR and to use NoSleep?
The text was updated successfully, but these errors were encountered: