nativescript-angular icon indicating copy to clipboard operation
nativescript-angular copied to clipboard

record.factory is not a function

Open seankonig opened this issue 4 years ago • 0 comments

Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): "dependencies": { "@angular/animations": "~10.2.4", "@angular/common": "~10.2.4", "@angular/compiler": "~10.2.4", "@angular/core": "~10.2.4", "@angular/forms": "~10.2.4", "@angular/platform-browser": "~10.2.4", "@angular/platform-browser-dynamic": "~10.2.4", "@angular/router": "~10.2.4", "@nativescript-community/drawingpad": "^4.1.0", "@nativescript-community/ui-material-activityindicator": "^5.2.20", "@nativescript-community/ui-material-bottomnavigationbar": "^5.2.20", "@nativescript-community/ui-material-bottomsheet": "^5.2.20", "@nativescript-community/ui-material-button": "^5.2.20", "@nativescript-community/ui-material-cardview": "^5.2.20", "@nativescript-community/ui-material-dialogs": "^5.2.20", "@nativescript-community/ui-material-textfield": "^5.2.20", "@nativescript-community/ui-material-textview": "^5.2.20", "@nativescript/angular": "~10.1.7", "@nativescript/camera": "^5.0.8", "@nativescript/core": "~7.0.7", "@nativescript/geolocation": "^7.0.0", "@nativescript/theme": "~3.0.0", "@nstudio/nativescript-checkbox": "^2.0.4", "@nstudio/nativescript-mapbox": "^6.0.0-rc.0", "@nstudio/nativescript-snackbar": "^2.1.0", "moment": "^2.29.1", "reflect-metadata": "~0.1.13", "rxjs": "^6.6.3", "tslint": "^6.1.3", "zone.js": "~0.11.1" }, "devDependencies": { "@angular/cli": "^10.2.3", "@angular/compiler-cli": "~10.2.4", "@nativescript/android": "7.0.1", "@nativescript/ios": "7.0.0", "@nativescript/schematics": "^10.1.0", "@nativescript/types": "~7.0.4", "@nativescript/webpack": "~3.0.5", "@ngtools/webpack": "~10.2.3", "node-sass": "^4.14.1", "typescript": "~4.0.3" },

Describe the bug A run time bug. The emulator displays the splash screen and then the screen just goes white.

ERROR Error: Uncaught (in promise): TypeError: record.factory is not a function JS: TypeError: record.factory is not a function JS: at R3Injector.hydrate (file: node_modules@angular\core\fesm2015\core.js:11346:0) JS: at R3Injector.get (file: node_modules@angular\core\fesm2015\core.js:11167:0) JS: at file: node_modules@angular\core\fesm2015\core.js:11204:0 JS: at Set.forEach () JS: at R3Injector._resolveInjectorDefTypes (file: node_modules@angular\core\fesm2015\core.js:11204:0) JS: at new NgModuleRef$1 (file: node_modules@angular\core\fesm2015\core.js:24300:0) JS: at NgModuleFactory$1.create (file: node_modules@angular\core\fesm2015\core.js:24354:0) JS: at MapSubscriber.project (file: node_modules@angular\router\fesm2015\router.js:3492:0) JS: at MapSubscriber.push.../node_modules/rxjs/_esm5/internal/operators/map.js.MapSubscriber._next (file: node_modules\rxjs_esm5\internal\operators\map.js:35:0)

To Reproduce ns run android

Expected behavior should load the app without any issues

Additional context I had a look at this issue https://github.com/angular/angular/issues/35282

Tried removing some of the Material packages to see if the break comes from them, but the error continues.

Any help is greatly appreciated

seankonig avatar Apr 13 '21 11:04 seankonig