Skip to content

Bug: Incorrect syntax of json assertion in @base-org/account/dist/core/constants.js:1:37 #182

@mjadach-iv

Description

@mjadach-iv

Describe the bug

In some projects, when importing wagmi, it fails becuase of the assertion in this package

Steps

  1. Checkout https://github.com/hoprnet/hub-hoprnet-org
  2. Update wagmi to latest
  3. Run 'yarn dev' to get
X [ERROR] Expected ";" but found "with"

    node_modules/@base-org/account/dist/core/constants.js:1:37:
      1 │ import pkg from '../../package.json' with { type: 'json' };
        │                                      ~~~~
        ╵                                      ;

Expected behavior

Assertion following the official ECMAScript specification

Version

2.4.2

Additional info

No response

Desktop

No response

Smartphone

No response

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