-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: NullInjectorError: No provider for Dr! #7816
Comments
Having the same issue here for newly created project, capacitor and angular version same as @israeloriente. Getting the same error on multiple machines |
Same for me. Affects both Android and IOS. Angular using Modules results in this error. IOS output error: ⚡️ ------ STARTUP JS ERROR ------ ⚡️ NullInjectorError: R3InjectorError(Platform: core)[t -> Dr]: |
Change angular version from 19 to 18 works. "dependencies": { |
WOOT! Confirmed downgrading from 19 -> 18 resolves the issue on both Android and IOS! |
Thank you it's working after changing Angular version from 19 to 18 |
Thank you, I have a same problem, solve with Angular 18 and npm install --force |
Capacitor Version
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 6.2.0
@capacitor/core: 6.2.0
@capacitor/android: 6.2.0
@capacitor/ios: 6.2.0
Installed Dependencies:
@capacitor/ios: not installed
@capacitor/cli: 6.2.0
@capacitor/android: 6.2.0
@capacitor/core: 6.2.0
[success] Android looking great! 👌
Other API Details
Platforms Affected
Current Behavior
I am getting an error when initializing a blank project with Capacitor. The error only occurs with Angular (version 19 used), and it is affecting Capacitor iOS and Android with the message:
File: https://localhost/ - Line 816 - Msg: NullInjectorError: R3InjectorError(Platform: core)[t -> Dr]:
NullInjectorError: No provider for Dr!
2024-12-23 19:03:52.363 7366-7366 Capacitor io.ionic.starter E JavaScript Error: {"type":"js.error","error":{"message":"Uncaught NullInjectorError: R3InjectorError(Platform: core)[t -> Dr]: \n NullInjectorError: No provider for Dr!","url":"https://localhost/main.039eac01c0536d9c.js","line":1,"col":130576,"errorObject":"{\"name\":\"NullInjectorError\",\"ngTempTokenPath\":null,\"ngTokenPath\":[\"t\",\"Dr\"]}"}}
2024-12-23 19:03:52.364 7366-7366 Capacitor/Console io.ionic.starter E File: https://localhost/main.039eac01c0536d9c.js - Line 1 - Msg: Uncaught NullInjectorError: R3InjectorError(Platform: core)[t -> Dr]:
NullInjectorError: No provider for Dr!
Expected Behavior
The application was expected to open normally, but the screen stays completely white, with an error message in the logs.
Project Reproduction
ionic start -> Framework Angular -> npm i @capacitor/android -> npx cap add android -> npm run build -> npx cap copy -> npx cap open android
Additional Information
No response
The text was updated successfully, but these errors were encountered: