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

Errors with angular 9 using ivy

Open Licen-it opened this issue 4 years ago • 6 comments

This is happening with version 0.6.2, i'm using Angular 9

Error: Tried to write node_modules/angular2-query-builder/dist/angular2-query-builder/lib/query-builder/query-operator.directive.d.ts.__ivy_ngcc_bak with an ngcc back up file but it already exists so not writing, nor backing up, node_modules/angular2-query-builder/dist/angular2-query-builder/lib/query-builder/query-operator.directive.d.ts.
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.
Error: Tried to write node_modules/angular2-query-builder/dist/angular2-query-builder/lib/query-builder/query-field.directive.d.ts.__ivy_ngcc_bak with an ngcc back up file but it already exists so not writing, nor backing up, node_modules/angular2-query-builder/dist/angular2-query-builder/lib/query-builder/query-field.directive.d.ts.
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.
Error: Tried to write node_modules/angular2-query-builder/dist/angular2-query-builder/lib/query-builder/query-entity.directive.d.ts.__ivy_ngcc_bak with an ngcc back up file but it already exists so not writing, nor backing up, node_modules/angular2-query-builder/dist/angular2-query-builder/lib/query-builder/query-entity.directive.d.ts.
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.
Error: Tried to write node_modules/angular2-query-builder/dist/angular2-query-builder/lib/query-builder/query-switch-group.directive.d.ts.__ivy_ngcc_bak with an ngcc back up file but it already exists so not writing, nor backing up, node_modules/angular2-query-builder/dist/angular2-query-builder/lib/query-builder/query-switch-group.directive.d.ts.
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.
Error: Tried to write node_modules/angular2-query-builder/dist/angular2-query-builder/lib/query-builder/query-button-group.directive.d.ts.__ivy_ngcc_bak with an ngcc back up file but it already exists so not writing, nor backing up, node_modules/angular2-query-builder/dist/angular2-query-builder/lib/query-builder/query-button-group.directive.d.ts.
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.
Error: Tried to write node_modules/angular2-query-builder/dist/angular2-query-builder/lib/query-builder/query-input.directive.d.ts.__ivy_ngcc_bak with an ngcc back up file but it already exists so not writing, nor backing up, node_modules/angular2-query-builder/dist/angular2-query-builder/lib/query-builder/query-input.directive.d.ts.
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.
Error: Tried to write node_modules/angular2-query-builder/dist/angular2-query-builder/lib/query-builder/query-remove-button.directive.d.ts.__ivy_ngcc_bak with an ngcc back up file but it already exists so not writing, nor backing up, node_modules/angular2-query-builder/dist/angular2-query-builder/lib/query-builder/query-remove-button.directive.d.ts.
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.
Error: Tried to write node_modules/angular2-query-builder/dist/angular2-query-builder/lib/query-builder/query-empty-warning.directive.d.ts.__ivy_ngcc_bak with an ngcc back up file but it already exists so not writing, nor backing up, node_modules/angular2-query-builder/dist/angular2-query-builder/lib/query-builder/query-empty-warning.directive.d.ts.
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.
Error: Tried to write node_modules/angular2-query-builder/dist/angular2-query-builder/lib/query-builder/query-arrow-icon.directive.d.ts.__ivy_ngcc_bak with an ngcc back up file but it already exists so not writing, nor backing up, node_modules/angular2-query-builder/dist/angular2-query-builder/lib/query-builder/query-arrow-icon.directive.d.ts.
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.
Error: Tried to write node_modules/angular2-query-builder/dist/angular2-query-builder/lib/query-builder/query-builder.component.d.ts.__ivy_ngcc_bak with an ngcc back up file but it already exists so not writing, nor backing up, node_modules/angular2-query-builder/dist/angular2-query-builder/lib/query-builder/query-builder.component.d.ts.
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.
Error: Tried to write node_modules/angular2-query-builder/dist/angular2-query-builder/lib/angular2-query-builder.module.d.ts.__ivy_ngcc_bak with an ngcc back up file but it already exists so not writing, nor backing up, node_modules/angular2-query-builder/dist/angular2-query-builder/lib/angular2-query-builder.module.d.ts.
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.
Error: Tried to write node_modules/angular2-query-builder/dist/angular2-query-builder/angular2-query-builder.d.ts.__ivy_ngcc_bak with an ngcc back up file but it already exists so not writing, nor backing up, node_modules/angular2-query-builder/dist/angular2-query-builder/angular2-query-builder.d.ts.
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.

Licen-it avatar Apr 23 '20 14:04 Licen-it

I have disabled ivy option in 0.6.2. If you need ivy try 0.6.1, let me know if that fixes it. I’m cannot find documentation regarding how to support both ivy and non-ivy modes in Angular 9.

zebzhao avatar Apr 30 '20 15:04 zebzhao

@zebzhao This error does not affect the use. Because the publish package includs dist and projects,It's enough to release "dist/angular2-query-builder"

zhytang avatar May 07 '20 03:05 zhytang

Would be nice to have it fixed eventually. Everything still works, but getting errors (not even warnings) during the build is suboptimal at best.

altso avatar Jun 25 '20 20:06 altso

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

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
        }
      }
    }
  }
};

sorry but this does not work for me.

AndreaCasucci avatar Feb 22 '21 16:02 AndreaCasucci

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
        }
      }
    }
  }
};

sorry but this does not work for me.

Which version of angular2-query-builder are you using? My example works with 0.6.2, and Angular version more than 9.

KarimovDev avatar Feb 24 '21 14:02 KarimovDev