angular-instantsearch
angular-instantsearch copied to clipboard
compatibility between Angular 16 and Angular-instantsearch
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.)
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.
I am interested
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()
),
]
});
@siwarsel Did you find the solution?
@siwarsel by any change did you get a solution to this ?
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?