'kendo-textbox' is not a known element when building Angular application for production

1 Answer 997 Views
TextBox
Tarek
Top achievements
Rank 2
Iron
Tarek asked on 01 Dec 2022, 08:37 AM | edited on 01 Dec 2022, 08:38 AM

Hi

I am using nrwl/nx in my angular application. My angular application contains 5 applications and 6 libraries. It is a big enterprise application.

I am using kendo libraries for angular.

The project can be served without any error

npx nx serve master

master is the starting point . it is angular application that responsible for routing and has main menu component.

As I Mentioned,  I can serve the application without any errors. So I can test it localy without any problem.

The problems comes when I decided to package the project in order to deply it to my web server.Here comes the problem

I used this command to build my project

nx run master:build:production

I got many errors like thises:

 'kendo-textbox' is not a known element,

 'kendo-formfield' is not a known element:
1. If 'kendo-formfield' is an Angular component, then verify that it is part of this module.
2. If 'kendo-formfield' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

 

It seems that the compiler cannot identifies the kendo libriries when building the project for deployment.

Has any one have suggestions, what could be the reason for this error?

 

Thanks

 

1 Answer, 1 is accepted

Sort by
0
Tarek
Top achievements
Rank 2
Iron
answered on 01 Dec 2022, 11:13 AM

I am sorry , It is my stupid misttake

I did not include the library into the import array of the app.module

 

problem solved

 

Tags
TextBox
Asked by
Tarek
Top achievements
Rank 2
Iron
Answers by
Tarek
Top achievements
Rank 2
Iron
Share this question
or