web3modal-angular icon indicating copy to clipboard operation
web3modal-angular copied to clipboard

Could not resolve dependency: dependencies conflicts issue for Angular 14

Open BeratS opened this issue 1 year ago • 6 comments

BeratS avatar Oct 16 '22 20:10 BeratS

Try npm install --save @mindsorg/web3modal-angular --legacy-peer-deps

niccolofanton avatar Oct 24 '22 10:10 niccolofanton

Hi @niccolofanton,

Thanks for taking time on this, tried but did not resolved the issue, maybe you should upgrade the libs, or allow as a peerDependencies the Angular v.14.2

BeratS avatar Oct 24 '22 11:10 BeratS

I would also be interested in Angular 14 as I tried to force install the libs and follow along but getting too many errors.

armyofda12mnkeys avatar Dec 12 '22 07:12 armyofda12mnkeys

Hey, we're not too active on GitHub as we primarily use GitLab - this mirrors a project at https://gitlab.com/minds/web3modal-angular

Our main codebase is currently running Angular 13 - when we upgrade it to Angular 14, we will have to make this sub-project compatible with Angular 14 - however, I can, unfortunately, offer no timeframes on when this will be.

bhayward93 avatar Dec 14 '22 18:12 bhayward93

Hey - the modal has now been upgraded to Angular 15 - having skipped over 14.

bhayward93 avatar Feb 06 '23 09:02 bhayward93

@bhayward93 just tried adding this to my project that is running on angular 15, but getting these errors

 error TS2345: Argument of type '{ providerOptions: { walletlink: { package: typeof WalletLink; options: { infuraUrl: string; appName: string; appLogoUrl: string; darkMode: boolean; }; logoUrl: string; }; }; }' is not assignable to parameter of type 'IProviderControllerOptions'.
  Type '{ providerOptions: { walletlink: { package: typeof WalletLink; options: { infuraUrl: string; appName: string; appLogoUrl: string; darkMode: boolean; }; logoUrl: string; }; }; }' is missing the following properties from type 'IProviderControllerOptions': disableInjectedProvider, cacheProvider, network
  providers: [
    {
      provide: Web3ModalService,
      useFactory: () => {
        return new Web3ModalService({
          network: "mainnet", // optional
          cacheProvider: true, // optional
          providerOptions // required
        });
      },
    }
  ],

playground avatar Feb 25 '23 22:02 playground