Skip to content

self is not defined for NextJS build #5

@maiconcarraro

Description

@maiconcarraro

First of all, great job forking and adding support/fixes, I'm trying to use and it gives an error during the build step:

  node_modules\@cantoo\html2canvas\dist\html2canvas.esm.js (2:217) @ self
  ReferenceError: self is not defined

Next.js: 14.1.4
cantoo/html2canvas: 1.5.9


I can workaround this doing await/import on client side, but would be nice to have it working without workarounds

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