Skip to content

[Bug]: Installing @metamask/sdk-analytics causing import_openapi_fetch.default is not a function #1340

Description

@danieljao

SDK

Web

Provide environment information

using react + webpack, trying to upgrade to web3auth/modal@10.0.2

MetaMask SDK Version

0.33.0

MetaMask Mobile app Version

n/a

What browser are you using? (if relevant)

firefox

How are you deploying your application? (if relevant)

No response

Describe the Bug

Hi, im using web3auth/modal which in turn installs @metamask/sdk-analytics@0.0.5 , and -- openapi-fetch@0.13.8 but when my app starts, im getting:

import_openapi_fetch.default is not a function
Analytics@http://localhost:3000/static/js/bundle.js:29273:54
./node_modules/@metamask/sdk-analytics/dist/index.js@http://localhost:3000/static/js/bundle.js:29317:14
options.factory@http://localhost:3000/static/js/bundle.js:303500:30
__webpack_require__@http://localhost:3000/static/js/bundle.js:302855:32

can someone help?

Expected Behavior

No errors

Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster

No response

To Reproduce

Using react and webpack, just install web3auth/modal@10.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions