You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
Describe the bug
We have an app that uses a custom Android application which imports a file that imports InjectionToken from @angular/core. When we run the app normally all goes well, when we run it with Webpack it crashes on startup.
The runtime error we get:
An uncaught Exception occurred on "main" thread.
java.lang.RuntimeException: Unable to create application com.tns.MyCustomApplication: com.tns.NativeScriptException: JavaScript object for Java ID 0 not found.
Attempting to call method onCreate
Describe the bug
We have an app that uses a custom Android application which imports a file that imports InjectionToken from @angular/core. When we run the app normally all goes well, when we run it with Webpack it crashes on startup.
The runtime error we get:
Sample project
I've created a sample project:
https://github.com/dennis-montana/webpack-custom-application-issue
If you remove line 1 and 3 with the InjectionToken from my-config.ts the app runs as expected with Webpack.
To Reproduce
Environment
Provide version numbers for the following components:
"@angular/cli": "6.2.3",
"@angular/common": "6.1.8",
"@angular/compiler": "6.1.8",
"@angular/core": "6.1.8",
"@angular/forms": "6.1.8",
"@angular/http": "6.1.8",
"@angular/platform-browser": "6.1.8",
"@angular/platform-browser-dynamic": "6.1.8",
"@angular/router": "6.1.8",
"nativescript-angular": "6.1.0",
"nativescript-theme-core": "~1.0.4",
"tns-core-modules": "~4.2.0",
"tns-platform-declarations": "^4.2.1",
"rxjs": "6.3.2"
The text was updated successfully, but these errors were encountered: