-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Error when using exported interface #14876
Comments
We have the same problem after upgrading to CLI 8.0.4. The files are imported correctly and are on correct paths, but
|
We have a similar issue too. Our pipeline was installing Ng CLI 8.0.4 instead of 8.0.0 so when executing the tests the 'MatDialog' were failing showing the error: Failed: DialogData is not defined |
Same issue here. It seems that the issue was introduced with version 0.800.4 of the @angular-devkit/build-angular as already stated. If I explicitly install version 0.800.3 my application compiles with no error. For everyone who needs a temporary solution |
I've seeing the same issue reverting back to |
Same problem here. Adding a comment for awareness. ): |
Same problem here but downgrade back to |
Same here. Explicitly installing |
Same problem here. Downgrading to |
It is not just exported interfaces, either. I think it has to do with the @Inject() decorator, because this code has the same problem, where the interface is local to the component.
|
Same issue here. Another workaround is to build with AOT. I am having an issue with 0.800.3 though. I am getting |
Version 8.0.5 has been released which contains the fix for the above. |
Works like a charm, thank you! |
Mela, I confirm this issue is fixed but now we are being hit by #14888 ): |
I can confirm that it works for me with |
Same for me. |
The latest version now correctly imports interfaces, see angular/angular-cli#14876
The latest version now correctly imports interfaces, see angular/angular-cli#14876
The problem is back when upgrading to: "@angular-devkit/build-angular": "0.801.0" "@angular-devkit/build-angular": "0.800.5" works fine for us and we experienced this problem with version 0.800.4. |
Updating to "@angular-devkit/build-angular": "0.801.1" and "@angular/cli": "8.1.1" fixed the issue. |
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
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was: 8.0.3(See "anything else relevant" section, exact bug has appeared and been fixed before)
Description
A clear and concise description of the problem...Using an exported interface produces an error, app is not served.
🔬 Minimal Reproduction
export an interface:
Import it elsewhere:
import { APP_CONFIG, AppConfig } from '../app.config';
Use it:
🔥 Exception or Error
ng serve
App is not served. Havent tried build.
🌍 Your Environment
Anything else relevant?
Had this exact issue almost 3 years ago - #2034 (comment). That issue has so many comments that I forget exactly how it was actually resolved, but it was, and warning eventually went away. Now its back.
At that time it was a warning and was ignorable. This time its an error and app is not served...
The text was updated successfully, but these errors were encountered: