Skip to content
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

[Element] is not a known element #2374

Open
paul-castro opened this issue Jan 12, 2022 · 1 comment
Open

[Element] is not a known element #2374

paul-castro opened this issue Jan 12, 2022 · 1 comment

Comments

@paul-castro
Copy link

paul-castro commented Jan 12, 2022

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.

@RazerPride
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants