Minds / web3modal-angular

MIT License
15 stars 8 forks source link

Could not resolve dependency: dependencies conflicts issue for Angular 14 #13

Open BeratS opened 2 years ago

niccolofanton commented 2 years ago

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

BeratS commented 2 years ago

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

armyofda12mnkeys commented 1 year ago

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

bhayward93 commented 1 year ago

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 commented 1 year ago

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

playground commented 1 year ago

@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
        });
      },
    }
  ],