Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

compatibility between Angular 16 and Angular-instantsearch #1002

Open
siwarsel opened this issue Jul 13, 2023 · 5 comments
Open

compatibility between Angular 16 and Angular-instantsearch #1002

siwarsel opened this issue Jul 13, 2023 · 5 comments

Comments

@siwarsel
Copy link

siwarsel commented Jul 13, 2023

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 siwarsel changed the title angular v16 compatibility between Angular 16 and Angular-instantsearch Jul 17, 2023
@b-abdallah
Copy link

I am interested

@msanthoshofficial
Copy link

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

@SuhasParameshwara
Copy link

@siwarsel Did you find the solution?

@gethari
Copy link

gethari commented Sep 6, 2023

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

@pascalconfluent
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants