Skip to content
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

Gallery is broken when navigated to directly #120

Open
jtleniger opened this issue Apr 15, 2020 · 4 comments
Open

Gallery is broken when navigated to directly #120

jtleniger opened this issue Apr 15, 2020 · 4 comments

Comments

@jtleniger
Copy link

I have a gallery on a page that works exactly as expected when navigated to from another page, i.e. open mypage.com, click gallery.

If I navigate directly to mypage.com/gallery, the gallery buttons are visible and unstyled, and clicking the images doesn't work.

Nothing appears in the console, and from the inspector it appears that the v-gallery isn't getting registered or something?

Functional, navigating from another page:
Screen Shot 2020-04-15 at 11 42 19 AM

Broken, navigating directly:
Screen Shot 2020-04-15 at 11 42 00 AM

@jtleniger
Copy link
Author

I'm using in NuxtJS which generates a static site so I'm suspicious this is the issue:
Annotation 2020-04-15 184656

@jtleniger
Copy link
Author

Might be a dupe. Seems like this: #3 (comment)

@jtleniger
Copy link
Author

Unfortunately setting ssr: false didn’t resolve it.

@moetun88
Copy link

moetun88 commented Aug 3, 2020

Encountering a similar issue
If I navigate through links on the site it loads perfectly. If I go directly from the URL it breaks with the error
'SyntaxError Invalid or unexpected token'

In console I'm also seeing the same message @jtleniger is getting about server-rendered and client-side DOM tree not matching.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants