3

I tried

ng add @angular/pwa

But I got an error saying (additionally, it is not creating/modifying any files in the project)

Bootstrap call not found

Here are the specifications

npm: '7.20.0'
node: '12.18.3',
angular-cli: '11.2.14' (project)

And here is the screenshot of the error screenshot of the error

Shardul
  • 90
  • 1
  • 9
  • Are you using the Bootstrap CSS framework? If yes, then can you verify that you have called it in angular.json correctly? – iftikharyk Jul 19 '21 at 08:02
  • No, I am not using Bootstrap framework in my project. I am using Material instead. – Shardul Jul 19 '21 at 08:04
  • Can you share your angular.json and your project directory structure? – iftikharyk Jul 19 '21 at 20:53
  • 4
    I just installed this package `ng add @angular-architects/module-federation` which modifies among others `main.ts` Then i added angular materials and got the same error as you. But the app compiles and seems to work, so I think it is the schematic that is complaining trying to modify the `main.ts` file. even though I cannot see that angular material does that in another project I have material installed on. – Troels Wiberg Jensen Jul 27 '21 at 13:05
  • Any news on how to fix this error? I also tried to temporary restore the original main.ts file but without luck. – 1Z10 Nov 11 '21 at 11:06
  • Do you use bootstrapApplication (standalone components)? Then this bug might be related to your problem: github.com/angular/angular-cli/issues/23316 For a workaround see https://stackoverflow.com/a/75430579/12240480. – lukket Mar 13 '23 at 10:33

0 Answers0