BUILD ERROR - When adding clarity package
See original GitHub issueType of Issue
[ ] Bug Report
## Description
Unable to complete the build when adding clarity as a package in the application package.
I have tried adding clarity to externals in ng-package.json but still build fails.
#### How To Reproduce
Please use this repo - https://github.com/keshav1007/ng-packagr
- Do yarn install
- Do yarn packagr
Error :
![image](https://user-images.githubusercontent.com/20353796/41396828-c1f08706-6fcf-11e8-9188-acdadc6af0fb.png)
BUILD ERROR
(1,1): : Directive ɵcb, Property 'block' does not exist on type 'ClrDatagridColumnToggleButton'.
node_modules/@clr/angular/clr-angular.d.ts.ClrHeader.html(6,13): : Property 'NAV_LEVEL_1' does not exist on type 'ResponsiveNavCodes'.
node_modules/@clr/angular/clr-angular.d.ts.ClrHeader.html(14,13): : Property 'NAV_LEVEL_2' does not exist on type 'ResponsiveNavCodes'.
Error: (1,1): : Directive ɵcb, Property 'block' does not exist on type 'ClrDatagridColumnToggleButton'.
node_modules/@clr/angular/clr-angular.d.ts.ClrHeader.html(6,13): : Property 'NAV_LEVEL_1' does not exist on type 'ResponsiveNavCodes'.
node_modules/@clr/angular/clr-angular.d.ts.ClrHeader.html(14,13): : Property 'NAV_LEVEL_2' does not exist on type 'ResponsiveNavCodes'.
at Object.<anonymous> (/Users/keshavs/test/test-ngPackagr/node_modules/ng-packagr/lib/ngc/compile-source-files.js:53:68)
at next (native)
at /Users/keshavs/test/test-ngPackagr/node_modules/ng-packagr/lib/ngc/compile-source-files.js:7:71
at __awaiter (/Users/keshavs/test/test-ngPackagr/node_modules/ng-packagr/lib/ngc/compile-source-files.js:3:12)
at Object.compileSourceFiles (/Users/keshavs/test/test-ngPackagr/node_modules/ng-packagr/lib/ngc/compile-source-files.js:19:12)
at Object.<anonymous> (/Users/keshavs/test/test-ngPackagr/node_modules/ng-packagr/lib/ng-v5/entry-point/ts/compile-ngc.transform.js:26:32)
at next (native)
at /Users/keshavs/test/test-ngPackagr/node_modules/ng-packagr/lib/ng-v5/entry-point/ts/compile-ngc.transform.js:7:71
at __awaiter (/Users/keshavs/test/test-ngPackagr/node_modules/ng-packagr/lib/ng-v5/entry-point/ts/compile-ngc.transform.js:3:12)
at exports.compileNgcTransform.transform_1.transformFromPromise (/Users/keshavs/test/test-ngPackagr/node_modules/ng-packagr/lib/ng-v5/entry-point/ts/compile-ngc.transform.js:17:75)
error An unexpected error occurred: "Command failed.
#### Expected Behaviour
Build should success.
#### Version Information
$ node_modules/.bin/ng-packagr --version ng-packagr: 3.0.2 @angular/*: 5.0.0 typescript: 2.4.2 rxjs: 5.5.2 node: 6.11.3 npm/yarn: 1.5.1
Issue Analytics
- State:
- Created 5 years ago
- Comments:27 (13 by maintainers)
Top Results From Across the Web
Unable to compile when installing vmware clarity using ng ...
I am unable to compile the project. I think the command is installing version 2 which is not supporting the project. below are...
Read more >Upgrade of Clarity PPM Fails with "Build Failed "- Error during ...
Receive "BUILD FAILED" Message when attempting to upgrade: 12/06/19 ... D:\Install\15.7\install-packages\15.5.1\upgrade-repack.15.5.1.240 ...
Read more >Clarity Error Messages - DataApex
This message seems to be related to exhausted Windows resources. Make sure you are using the latest version of Clarity and a fully...
Read more >v5 Changelog | Clarity Design System
core, Add tokens to package.json exports, #6431. ESLint, eslint-plugin-clarity-adoption ... Build, Clarity Adoption, Adoption guide released in beta, #5821.
Read more >Bugsnag: Error Monitoring & App Stability Management
Bugsnag is an error monitoring and reporting software with best-in-class functionality for mobile apps. Our tool alerts users of bugs, errors & more....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
A BIG BIG BIG thanks to you… my bad i exported only in the module and not in the public_api… it works fine now… AOT build is also working properly… thanks a lot 👍
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem. This action has been performed automatically by a bot.