Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"export 'ɵɵinject' was not found in '@angular/core'. Error for Angular 6,7 projects #12

Closed
udayvunnam opened this issue Sep 28, 2019 · 4 comments
Labels
bug Something isn't working Fixed

Comments

@udayvunnam
Copy link
Owner

Describe the bug
After following the install guide of XngBreadcrumb for an Angular 7 project getting error.

To Reproduce
Steps to reproduce the behavior:

  1. Follow install guide
  2. Import BreadcrumbModule and place component

Expected behavior
No error should be thrown.

Screenshots
Screenshot 2019-09-28 at 10 00 35 AM

@udayvunnam
Copy link
Owner Author

In Angular8 defineInjectable was renamed to ɵɵdefineInjectable and defineInjectable was deprecated. This makes pre-8 libraries compatible with v8, however v8 compiled libraries will not be compatible with pre-8 consumers.

So, We should compile with Angular 7 and release it as compatible version for Angular 6 and 7.
Angular 8 compiled library will be compatible with Angular 8 + projects

@udayvunnam udayvunnam added the bug Something isn't working label Sep 28, 2019
@udayvunnam
Copy link
Owner Author

Fix verified - https://stackblitz.com/edit/angular-4roi7m

@lenichols
Copy link

@udayvunnam when will this fix be available? I am using ng7 and i am getting this error. Not sure how to fix.

@udayvunnam
Copy link
Owner Author

udayvunnam commented Oct 2, 2019

Hi @lenichols the fix is already available. Please use xng-breadcrumb@2.1.2 for Angular 6.x and 7.x

Compatibility versions: https://github.com/udayvunnam/xng-breadcrumb#compatiblity-table

The issue is because of a breaking change from @angular/core in version 8. If you ever upgrade your project to Angular 8+, use xng-breadcrumb@3.x instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Fixed
Projects
None yet
Development

No branches or pull requests

2 participants