question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BUILD ERROR - When adding clarity package

See original GitHub issue

Type 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:closed
  • Created 5 years ago
  • Comments:27 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
keshav1007commented, Jun 18, 2018

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 👍

0reactions
github-actions[bot]commented, Jun 19, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found