Skip to content
This repository was archived by the owner on May 8, 2023. It is now read-only.
This repository was archived by the owner on May 8, 2023. It is now read-only.

Error: Type TNSFontIconModule does not have 'ngModuleDef' property. #67

@detonimarco

Description

@detonimarco

Hi,
I upgreded to "nativescript-ngx-fonticon": "^6.0.3" from "nativescript-ngx-fonticon": "^5.0.2",

"nativescript-ngx-fonticon": "^6.0.3",
"@angular/core": "~8.2.0",
"nativescript-angular": "^8.21.0",
"tns-core-modules": "^6.5.0,
"tns-android": {
"version": "6.5.0"
}

getting

System.err: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: Error calling module function 
System.err: Error: Type TNSFontIconModule does not have 'ngModuleDef' property.
System.err: File: (file: node_modules/@angular/core/fesm5/core.js:1524:0)
System.err: 
System.err: StackTrace: 
System.err: ZoneAwareError(file: node_modules/@nativescript/angular/zone-js/dist/zone-nativescript.js:1298:0)
System.err:     at getNgModuleDef(file: node_modules/@angular/core/fesm5/core.js:1524:0)
System.err:     at (file: node_modules/@angular/core/fesm5/core.js:1355:0)
System.err:     at noSideEffects(file: node_modules/@angular/core/fesm5/core.js:1163:0)
System.err:     at ɵɵsetNgModuleScope(file: node_modules/@angular/core/fesm5/core.js:1354:0)
System.err:     at (file: node_modules/nativescript-ngx-fonticon/nativescript-ngx-fonticon.js:26:14)
System.err:     at ../node_modules/nativescript-ngx-fonticon/nativescript-ngx-fonticon.js(file: node_modules/nativescript-ngx-fonticon/nativescript-ngx-fonticon.js:28:50)
System.err:     at __webpack_require__(file: src/webpack/bootstrap:753:0)
System.err:     at fn(file: src/webpack/bootstrap:120:0)
System.err:     at ../node_modules/nativescript-ngx-fonticon/index.js(file: node_modules/nativescript-ngx-fonticon/index.js:9:34)
System.err:     at __webpack_require__(file: src/webpack/bootstrap:753:0)
System.err:     at fn(file: src/webpack/bootstrap:120:0)
System.err:     at ./app/app.module.ts(file:///data/data/org.nativescript.ngsample/files/app/bundle.js:1052:84)
System.err:     at __webpack_require__(file: src/webpack/bootstrap:753:0)
System.err:     at fn(file: src/webpack/bootstrap:120:0)
System.err:     at (file:///data/data/org.nativescript.ngsample/files/app/bundle.js:2952:73)
System.err:     at ./main.ts(file:///data/data/org.nativescript.ngsample/files/app/bundle.js:3016:30)
System.err:     at __webpack_require__(file: src/webpack/bootstrap:753:0)
System.err:     at checkDeferredModules(file: src/webpack/bootstrap:43:0)
System.err:     at webpackJsonpCallback(file: src/webpack/bootstrap:30:0)
System.err:     at (file:///data/data/org.nativescript.ngsample/files/app/bundle.js:2:57)
System.err:     at require(:1:266)
System.err: 
System.err: 
System.err: Error: Type TNSFontIconModule does not have 'ngModuleDef' property.
System.err: 
System.err: StackTrace:
System.err: java.lang.RuntimeException: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: Error calling module function 
System.err: Error: Type TNSFontIconModule does not have 'ngModuleDef' property.
System.err: File: (file: node_modules/@angular/core/fesm5/core.js:1524:0)
System.err: 
System.err: StackTrace: 
System.err: ZoneAwareError(file: node_modules/@nativescript/angular/zone-js/dist/zone-nativescript.js:1298:0)
System.err:     at getNgModuleDef(file: node_modules/@angular/core/fesm5/core.js:1524:0)
System.err:     at (file: node_modules/@angular/core/fesm5/core.js:1355:0)
System.err:     at noSideEffects(file: node_modules/@angular/core/fesm5/core.js:1163:0)
System.err:     at ɵɵsetNgModuleScope(file: node_modules/@angular/core/fesm5/core.js:1354:0)
System.err:     at (file: node_modules/nativescript-ngx-fonticon/nativescript-ngx-fonticon.js:26:14)
System.err:     at ../node_modules/nativescript-ngx-fonticon/nativescript-ngx-fonticon.js(file: node_modules/nativescript-ngx-fonticon/nativescript-ngx-fonticon.js:28:50)
System.err:     at __webpack_require__(file: src/webpack/bootstrap:753:0)
System.err:     at fn(file: src/webpack/bootstrap:120:0)
System.err:     at ../node_modules/nativescript-ngx-fonticon/index.js(file: node_modules/nativescript-ngx-fonticon/index.js:9:34)
System.err:     at __webpack_require__(file: src/webpack/bootstrap:753:0)
System.err:     at fn(file: src/webpack/bootstrap:120:0)
System.err:     at ./app/app.module.ts(file:///data/data/org.nativescript.ngsample/files/app/bundle.js:1052:84)
System.err:     at __webpack_require__(file: src/webpack/bootstrap:753:0)
System.err:     at fn(file: src/webpack/bootstrap:120:0)
System.err:     at (file:///data/data/org.nativescript.ngsample/files/app/bundle.js:2952:73)
System.err:     at ./main.ts(file:///data/data/org.nativescript.ngsample/files/app/bundle.js:3016:30)
System.err:     at __webpack_require__(file: src/webpack/bootstrap:753:0)
System.err:     at checkDeferredModules(file: src/webpack/bootstrap:43:0)
System.err:     at webpackJsonpCallback(file: src/webpack/bootstrap:30:0)
System.err:     at (file:///data/data/org.nativescript.ngsample/files/app/bundle.js:2:57)
System.err:     at require(:1:266)
System.err: 
System.err: 
System.err: Error: Type TNSFontIconModule does not have 'ngModuleDef' property.
System.err:     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6065)
System.err:     at android.app.ActivityThread.-wrap1(Unknown Source:0)
System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1764)
System.err:     at android.os.Handler.dispatchMessage(Handler.java:105)
System.err:     at android.os.Looper.loop(Looper.java:164)
System.err:     at android.app.ActivityThread.main(ActivityThread.java:6944)
System.err:     at java.lang.reflect.Method.invoke(Native Method)
System.err:     at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
System.err: Caused by: com.tns.NativeScriptException: Error calling module function 
System.err: Error: Type TNSFontIconModule does not have 'ngModuleDef' property.
System.err: File: (file: node_modules/@angular/core/fesm5/core.js:1524:0)
System.err: 
System.err: StackTrace: 
System.err: ZoneAwareError(file: node_modules/@nativescript/angular/zone-js/dist/zone-nativescript.js:1298:0)
System.err:     at getNgModuleDef(file: node_modules/@angular/core/fesm5/core.js:1524:0)
System.err:     at (file: node_modules/@angular/core/fesm5/core.js:1355:0)
System.err:     at noSideEffects(file: node_modules/@angular/core/fesm5/core.js:1163:0)
System.err:     at ɵɵsetNgModuleScope(file: node_modules/@angular/core/fesm5/core.js:1354:0)
System.err:     at (file: node_modules/nativescript-ngx-fonticon/nativescript-ngx-fonticon.js:26:14)
System.err:     at ../node_modules/nativescript-ngx-fonticon/nativescript-ngx-fonticon.js(file: node_modules/nativescript-ngx-fonticon/nativescript-ngx-fonticon.js:28:50)
System.err:     at __webpack_require__(file: src/webpack/bootstrap:753:0)
System.err:     at fn(file: src/webpack/bootstrap:120:0)
System.err:     at ../node_modules/nativescript-ngx-fonticon/index.js(file: node_modules/nativescript-ngx-fonticon/index.js:9:34)
System.err:     at __webpack_require__(file: src/webpack/bootstrap:753:0)
System.err:     at fn(file: src/webpack/bootstrap:120:0)
System.err:     at ./app/app.module.ts(file:///data/data/org.nativescript.ngsample/files/app/bundle.js:1052:84)
System.err:     at __webpack_require__(file: src/webpack/bootstrap:753:0)
System.err:     at fn(file: src/webpack/bootstrap:120:0)
System.err:     at (file:///data/data/org.nativescript.ngsample/files/app/bundle.js:2952:73)
System.err:     at ./main.ts(file:///data/data/org.nativescript.ngsample/files/app/bundle.js:3016:30)
System.err:     at __webpack_require__(file: src/webpack/bootstrap:753:0)
System.err:     at checkDeferredModules(file: src/webpack/bootstrap:43:0)
System.err:     at webpackJsonpCallback(file: src/webpack/bootstrap:30:0)
System.err:     at (file:///data/data/org.nativescript.ngsample/files/app/bundle.js:2:57)
System.err:     at require(:1:266)
System.err: 
System.err: 
System.err: Error: Type TNSFontIconModule does not have 'ngModuleDef' property.
System.err:     at com.tns.Runtime.runModule(Native Method)
System.err:     at com.tns.Runtime.runModule(Runtime.java:674)
System.err:     at com.tns.Runtime.run(Runtime.java:666)
System.err:     at com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:21)
System.err:     at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1125)
System.err:     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6062)
System.err:     ... 8 more

If I stay on "nativescript-ngx-fonticon": "^5.0.2" it runs without errors

Regards
MDT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions