8000 Incorrect export causes `ReferenceError: indexedDB is not defined` in nextjs and any bundler that resolves `module` for ES modules · Issue #237 · WalletConnect/walletconnect-utils · GitHub
[go: up one dir, main page]

Skip to content

Incorrect export causes ReferenceError: indexedDB is not defined in nextjs and any bundler that resolves module for ES modules #237

@michalkvasnicak

Description

@michalkvasnicak

This export

"module": "dist/index.es.js",
causes server side build of nodejs to throw an unhandled error ReferenceError: indexedDB is not defined because module points to browser only javascript file, but module is perfectly valid for nodejs as well.

Browser should probably use only browser export and main + module should target nodejs

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

      0