Skip to content

I'm using CommonJS! What should I do? #1789

@szmarczak

Description

@szmarczak

Please read this.

If you can't move to ESM yet, please stay on the Got v11 branch.

Workarounds for Got v12

  1. Use await import('got').
  2. Use a wrapper: https://gist.github.com/szmarczak/0f2b70b2a1ed52a56a6d391ac02d094d
    Disclaimer: the first request needs to be a Promise.
  3. Use a third party module such as got-cjs: https://github.com/apify/got-cjs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions