Skip to content

Why do onClick listeners not work with Static Site Generation? #16890

Answered by mattcarlotta
samwatts98 asked this question in Help
Discussion options

You must be logged in to vote

Unable to replicate. My guess is that your production server isn't serving JS assets.

Working (local staging) example: https://github.com/mattcarlotta/with-static-counter

If you're still running into issues, please provide a working, minimal, and reproducible example of the problem.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@samwatts98
Comment options

@mattcarlotta
Comment options

@samwatts98
Comment options

Answer selected by samwatts98
Comment options

You must be logged in to vote
3 replies
@Garamani
Comment options

@Garamani
Comment options

@thamaraiselvam
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
5 participants