Skip to content

Error initializing connector #29

@iphyman

Description

@iphyman

I receive below error when trying to initialize the core connector;

  Property 'actions' is protected but type 'Connector' is not a class derived from 'Connector'.ts(2344)

Below is my code;

import { CoreWallet } from "@avalabs/web3-react-core-connector";
import { initializeConnector } from "@web3-react/core";

export const [coreWallet, coreWalletHooks] = initializeConnector<CoreWallet>(
  (actions) => new CoreWallet({ actions })
);

I think it's related to the old beta version of the web3-react core, I have the latest "@web3-react/core": "^8.2.3" installed,

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