Open BeratS opened 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
I would also be interested in Angular 14 as I tried to force install the libs and follow along but getting too many errors.
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.
Hey - the modal has now been upgraded to Angular 15 - having skipped over 14.
@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
});
},
}
],
Try
npm install --save @mindsorg/web3modal-angular --legacy-peer-deps