FortAwesome / angular-fontawesome

Official Angular component for Font Awesome 5+
https://fontawesome.com
MIT License
1.49k stars 152 forks source link

I got this error while installing : Bootstrap call not found #410

Closed biondiBagasta closed 1 year ago

biondiBagasta commented 1 year ago

error font awesome

devoto13 commented 1 year ago

Hey, Hard to tell without a minimal reproduction, but I can speculate that you're running standalone application and the existing ng-add schematic does not support it.

woutersteven commented 1 year ago

I'm not sure if you're still having this problem, but i had this problem with another library and fixed it by temporarily changing

src/main.ts

import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

import { AppModule } from './app/app.module';

platformBrowserDynamic().bootstrapModule(AppModule)
  .catch(err => console.error(err));

and

app/app.module.ts

import {NgModule} from '@angular/core';

@NgModule({
  declarations: [
  ],
  imports: [
  ],
  providers: [
  ],
  bootstrap: []
})
export class AppModule { }

Then run the schematic again, see what the changes are and manually place the changes in your original files.

Again, i didn't have this problem with this particular library, i experienced it with another one. :)

alexandresebrao commented 1 year ago

Hi @devoto13! I'm updating project that I work on angular to v17, how do I update the package json to use master branch .

devoto13 commented 1 year ago

@alexandresebrao You can use 0.14.0.