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

[Element] is not a known element

Open paul-castro opened this issue 3 years ago • 1 comments

Package.json

{ "name": [App Name], "main": "./src/main.ts", "version": "1.0.0", "private": true, "dependencies": { "@angular/animations": "~13.1.1", "@angular/common": "~13.1.1", "@angular/compiler": "~13.1.1", "@angular/core": "~13.1.1", "@angular/forms": "~13.1.1", "@angular/platform-browser": "~13.1.1", "@angular/platform-browser-dynamic": "~13.1.1", "@angular/router": "~13.1.1", "@nativescript/angular": "^13.0.0", "@nativescript/background-http": "^5.0.2", "@nativescript/core": "~8.1.1", "@nativescript/firebase-analytics": "^1.0.0-alpha.0", "@nativescript/firebase-core": "^1.0.0-alpha.0", "@nativescript/theme": "~3.0.1", "@nativescript/webpack": "~5.0.0", "@nstudio/nativescript-cardview": "^2.0.1", "@nstudio/nativescript-checkbox": "^2.0.4", "@nstudio/nativescript-loading-indicator": "^4.1.2", "moment": "^2.29.1", "nativescript-appavailability": "^1.3.2", "nativescript-appversion": "^1.4.4", "nativescript-exit": "^1.0.1", "nativescript-fingerprint-auth": "^7.0.2", "nativescript-geolocation": "^5.1.0", "nativescript-google-maps-sdk": "^3.0.2", "nativescript-mediafilepicker": "^4.0.2", "nativescript-modal-datetimepicker": "^2.1.5", "nativescript-phone": "^3.0.2", "node-sass": "^7.0.1", "rxjs": "~7.4.0", "zone.js": "~0.11.4" }, "devDependencies": { "@angular-devkit/build-angular": "~13.1.1", "@angular/compiler-cli": "~13.1.1", "@nativescript/android": "8.1.1", "@nativescript/types": "~8.1.1", "@ngtools/webpack": "~13.1.1", "typescript": "~4.4.4" } }

Error:

error NG8001: 'FlexboxLayout' is not a known element:

  1. If 'FlexboxLayout' is an Angular component, then verify that it is part of this module.
  2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

error NG8001: 'CardView' is not a known element:

  1. If 'CardView' is an Angular component, then verify that it is part of this module.
  2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

All modules on my project, has @NgModule.schemas: "NO_ERRORS_SCHEMA". This is a newly generated Nativescript angular app, but I copy paste a "src" folder from my old Nativescript project.

paul-castro avatar Jan 12 '22 22:01 paul-castro

I have the same problem on Angular v13.0.0, I tried creating a shared module which exports the desired component but does not work either.

RazerPride avatar Aug 17 '22 06:08 RazerPride