Angular-QueryBuilder icon indicating copy to clipboard operation
Angular-QueryBuilder copied to clipboard

Errors in ngcc with Angular 9

Open lnbxyz opened this issue 4 years ago • 4 comments

When running ngcc in the postinstall script, I get the following error for most entrypoints:

Error: Tried to write <redacted>/node_modules/angular2-query-builder/dist/angular2-query-builder/esm5/lib/query-builder/query-input.directive.js.__ivy_ngcc_bak with an ngcc back up file but it already exists so not writing, nor backing up, <redacted>/node_modules/angular2-query-builder/dist/angular2-query-builder/esm5/lib/query-builder/query-input.directive.js.
This error may be because two or more entry-points overlap and ngcc has been asked to process some files more than once.
You should check other entry-points in this package and set up a config to ignore any that you are not using.

It seems to work nonetheless, but I'd like to know whether this is a bug or this error is my fault.

lnbxyz avatar Aug 06 '20 13:08 lnbxyz

Same here

KarimovDev avatar Aug 09 '20 22:08 KarimovDev

You can fix it by placing an ngcc.config.js file at the root of the project next to your package.json file with this code:

module.exports = {
  packages: {
    'angular2-query-builder': {
      entryPoints: {
        './dist/angular2-query-builder': {
          ignore: true
        }
      }
    }
  }
};

KarimovDev avatar Aug 10 '20 00:08 KarimovDev

thank

Zmiy avatar Oct 07 '20 10:10 Zmiy

This might be a duplicate of https://github.com/zebzhao/Angular-QueryBuilder/issues/141

Sebi11 avatar Feb 11 '21 13:02 Sebi11