Unable to inject Capacitor

Hi there,
I’am trying to develop an AngularJS hybrid application using ionic framework v4 and Capacitor to build the ios/android package.
But when i launch my android applicaton on my mobile device i got :

  • Capacitor: Unable to inject Capacitor, Plugins won’t work.

I try to reinstall capacitor and check all the permissions but it don’t solve my problem.
Is anybody here has encounter the same problem ?

“AngularJS” specifically refers to version 1 of what is now just called Angular. Are you intending to use the term this way, or do you just mean “Angular” here?

I mean generaly angular in that case.

According to @jcesarmobile’s comment on this issue, that particular message itself may sound scarier than it is. Can you elaborate about which particular plugins you are using and/or having trouble with, if there are any?

Presicely i used the geolocation and camera plugins with the pwa-elements to mae test easier on browser.
This is the only plugins i use in my project :confused:

This kind of error message can happen if there is no head tag in the HTML file. See this comment.

I did encounter this issue when migrating a small test app from Cordova to Capacitor. I do think the requirement to use a head element should be documented.

P.S. I raised this Q&A on StackOverflow: https://stackoverflow.com/questions/62125279/what-does-unable-to-inject-capacitor-mean-and-how-can-i-fix-it

and raised this PR to get this documented: https://github.com/ionic-team/capacitor/pull/3024