-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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 'ɵɵcomponentHostSyntheticListener' (imported as 'i0') was not found in '@angular/core' #38254
Comments
Heya, instructions are not considered stable API and can currently change at any time. The Keeping this open for visibility. |
Hey @JoostK sorry for the late reply from my side, I wanted to make few more test before that. I created a dummy lib: ng new my-workspace --create-application=false
cd my-workspace
ng generate library my-lib Modify the my-lib.component to import { Component, OnInit, HostBinding, HostListener } from '@angular/core';
@Component({
selector: 'lib-component',
template: `
<p>
works!
</p>
`,
styles: [
]
})
export class LibComponent implements OnInit {
constructor() { }
@HostBinding('@expandAnimation')
@HostListener('@expandAnimation.done')
@HostBinding('@leaveAnimation')
ngOnInit(): void {
}
} And build it like that ng build my-lib --prod When I try to use it into the freshly build app. I'm getting the same error: "export 'ɵɵsyntheticHostListener' (imported as 'ɵngcc0') was not found in '@angular/core'
"export 'ɵɵsyntheticHostProperty' (imported as 'ɵngcc0') was not found in '@angular/core' The DemoApplication is based on the latest version 10.0.5 (Ivy is set to true/default)
Here is a repository with both projects and script to test them quick : https://github.com/bdryanovski/faild-build Not sure, did I miss something? |
@bdryanovski Thanks for the follow-up. After briefly looking into the reproduction, I suspect the issue you're seeing is because of the symlinked library. Module resolution from within The way in which symlinks are currently handled is definitely not ideal. There's issue #33395 to track the issues around symlinks. |
Hey @JoostK, I gonna keep an eye on it. It seems that our issue was something completely different - but at least know I know how some of the internal inside @angular/core is working ;) Thanks for the help. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 bug report
We are getting this error when we try to run the latest (at the moment 10.0.5) version.
Affected Package
The issue is caused by package @angular/core: 10.0.5
Is this a regression?
This issue is not present in older version: 10.0.x >= 10.0.4
Description
It seems to be trigger when one of these bindings/listeners are used.
After this commit in version 10.0.5 the changes there are now breaking our build. And create a breaking change for us.
🔬 Minimal Reproduction
Github Repository for testing
git clone https://github.com/bdryanovski/clarity-v3-dark-theme-sbpxsn cd clarity-v3-dark-theme-sbpxsn npm install npm run start
🔥 Exception or Error
🌍 Your Environment
Angular Version:
Anything else relevant?
The text was updated successfully, but these errors were encountered: