Skip to content

Error: Cannot find module use-sync-external-store/shim/with-selector #379

@sinnrrr

Description

@sinnrrr

Hello, thanks for such a great package!

I have some troubles with connecting web3-react to my application. I'm having the following error:

Error: Cannot find module '/Users/dmytro/Work/learn/web3-react/packages/example/node_modules/use-sync-external-store/shim/with-selector' imported from /Users/dmytro/Work/learn/web3-react/packages/example/node_modules/@web3-react/core/node_modules/zustand/esm/index.mjs
Did you mean to import use-sync-external-store/shim/with-selector.js?

Tried launching the official example under packages/example, but also got the same issue.

EDIT: I've detected, that it occurs when I'm destructuring from connector hooks (so the problem lies in initializeConnector function):

import { hooks } from "../connectors/metaMask";

const { useProvider } = hooks;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions