Skip to content

[Bug] ReferenceError: document is not defined #50

Description

@liviopersonne

Describe the bug
When launching the app in the VM, at startup I get errors concerning the blog pages. They are reference errors concerning "document", which is not defined.
Files affected:

  • /edit-blog/[postId]/page.js
  • /blog/[postId]/page.js
    This issue doesn't prevent the website from launching without any problems.

To Reproduce
Steps to reproduce the behavior:

  1. Connect the the VM
  2. Make a build for the website
  3. Run bun run start
  4. See the reference errors

Expected behavior
Those errors shouldn't appear. Either remove the "document" reference if it isn't used, or import it correctly. Since this error only occurs on the VM and not my pc, it might be a little more tricky than that.

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions