Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
This repository was archived by the owner on May 22, 2025. It is now read-only.

[Bug]: Error while importing the web version in webpack #2255

Open
@Druelik

Description

@Druelik

Issue description

After updating to the latest version 1.1.3 and following the examples. Webpack reports error while importing the wasm library.

OutputDiscriminator seems to be undefined. At least it is that, what webpack reports back as error.

Returning to version 1.1.2 fixes the Problem.

Version

@iota/sdk-wasm : 1.1.3

Expected behaviour

Import should work without errors

Actual behaviour

Webpack errors on the import.

Can the issue reliably be reproduced?

Yes

Steps to reproduce the issue

  1. Follow the example, with webpack
  2. Import the lib
  3. See the crash in the browser.

Errors

Log:

Uncaught TypeError: _output__WEBPACK_IMPORTED_MODULE_2__ is undefined
    OutputDiscriminator index.js:21
    OutputResponse output-response.ts:20
    <anonymous> output-response.ts:23
    node_modules chunk-vendors.js:867
  

Screenshot:
image

Duplicate declaration

  • I have searched the issues tracker this issue and there is none

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Product Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions