when i debug ng-zorro-antd has error: xxx is missing typescirpt compilation

I expected to use the yarn workspace to create a demo and ng-zorro-antd project for debugging ng-zorro-antd, but I encountered the following error:

ERROR in .../workspace-demo/node_modules/ng-zorro-antd/button/index.ts
Module build failed (from ./node_modules/@ngtools/webpack/src/index.js):
Error: .../workspace-demo/node_modules/ng-zorro-antd/button/index.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Format ....
    at AngularCompilerPlugin.getCompiledFile (.../workspace-demo/packages/demo/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:949:23)
    at .../workspace-demo/packages/demo/node_modules/@ngtools/webpack/src/loader.js:43:31
    at processTicksAndRejections (internal/process/task_queues.js:94:5)

The code repository is here:github

Source: Angular Questions

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.