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.

Errors with angular 9 using ivy

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:4
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
KarimovDevcommented, Feb 24, 2021

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.

2reactions
KarimovDevcommented, Aug 10, 2020

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
        }
      }
    }
  }
};
Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular Upgrade from 8 to 9 - Ivy Compilation Errors in ...
In version 8 i was not using Ivy, i was using View Engine as it is the default. After the upgrade to 9...
Read more >
All Perks, No Hassle: An Angular 9 Tutorial - Toptal
Angular Ivy allows us to have errors presented in a clearer way and helps enforce TypeScript typing in our code. In the following...
Read more >
App does not compile with Ivy - Angular 9 #32466 - GitHub
I'm using 16.0.2 together with Angular bbd4a33 (a commit from today). The compilation failures you're seeing might be related to the fix being ......
Read more >
Angular Ivy
If you are a library author, you should keep using the View Engine compiler as of version 9. By having all libraries continue...
Read more >
Angular compiler options
Most of the time you interact with the Angular Compiler indirectly using Angular CLI. When debugging certain issues, you might find it useful...
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