Skip to content

Error: self is not defined #85

@monolithed

Description

@monolithed
Image

This issue occurs when using frameworks like Next.js, where self is not yet defined during the initial render.
To fix this, you can build the library using this instead.

output: {
  globalObject: 'this'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions