Skip to content

Nuxt implementation — 500 error: document is not defined #10

@Krislunde

Description

@Krislunde

Hey there,

I have implemented this package as outlined here, including optimizing the script loading. Nuxt 3.19.1.

However, the site is giving a 500 error, with the message document is not defined.

Image

Additional console error:

Image

The Google Captcha badge actually loads over the 500 error screen however. And it does seem to kind of work? If I save a file to cause a hot module refresh, the site will work and I can request a token through recaptcha — which makes it seem like this has to do with SSR, but definitely isolated to this library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions