-
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
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
ReferenceError: navigator is not defined on fresh install #2878
Comments
You have to use dynamic imports and disable SSR, since reveal.js is a browser side library. |
So on is oily I have no idea what I am doing, can’t leave the site,
waiting for in person training once covd-19. In the meantime is the a way
I can at least see the true result at the end ??
On Sat, Feb 27, 2021 at 03:43 Giancarlo Razzolini ***@***.***> wrote:
You have to use dynamic imports
<https://nextjs.org/docs/advanced-features/dynamic-import> and disable
SSR, since reveal.js is a browser side library.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2878 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQBAUU6VELETYCANRCRNQALTBDLHPANCNFSM4WFNAJJA>
.
--
"Doc" Allman, Erich
619-507-3650
FMF.Doc.Allman@Gmail.com
|
I had the same problem, and following @grazzolini tip, fixed my bug. Just tu give people that might need and example:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I am tryign to use this in my next.js headless CMS.
I have installed as per these instrcutions
https://revealjs.com/installation/#installing-from-npm
when i try to use it I get this error
Server Error
ReferenceError: navigator is not defined
This error happened while generating the page. Any console logs will be displayed in the terminal window.
Source
external%20%22reveal.js%22 (1:0) @ eval
The text was updated successfully, but these errors were encountered: