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

compatibility between Angular 16 and Angular-instantsearch

Open siwarsel opened this issue 1 year ago • 5 comments

I migrated from angular 15 to angular 16, knowing that I am using angular-instantsearch, when I build my project, I get these errors. (All my components are marked as standalone component and contain all necessary imports, and my project works perfectly with angular 15.)

image

Can someone please help me, and tell me if these errors are related to angular-instantsearch not supporting angular16 or not, and if there is any update information for angular-instantsearch.

siwarsel avatar Jul 13 '23 08:07 siwarsel

I am interested

b-abdallah avatar Jul 17 '23 14:07 b-abdallah

Maybe you should import it like this ?

import {LibraryModule} from 'ngmodule-based-library';

bootstrapApplication(PhotoAppComponent, {
  providers: [
    {provide: BACKEND_URL, useValue: 'https://photoapp.looknongmodules.com/api'},
    importProvidersFrom(
      LibraryModule.forRoot()
    ),
  ]
});

msanthoshofficial avatar Aug 05 '23 09:08 msanthoshofficial

@siwarsel Did you find the solution?

SuhasParameshwara avatar Aug 17 '23 10:08 SuhasParameshwara

@siwarsel by any change did you get a solution to this ?

gethari avatar Sep 06 '23 04:09 gethari

I have the same issue. If I declare my component this way:

@Component({ selector: 'app-root', standalone: true, imports: [RouterOutlet, NgAisInstantSearchModule], templateUrl: './app.component.html', styleUrl: './app.component.css', })

I get a TS-992012

Also tried with importProvidersFrom(NgAisInstantSearchModule.forRoot()) and that gives me a TS2322

Any idea on how to solve it?

pascalconfluent avatar Jan 18 '24 20:01 pascalconfluent