export 'CalendarEvent' was not found in _____
See original GitHub issueDescribe the bug
I am including the CalendarEvent interface in multiple components. This error only occurs in one of them.
I have tried importing CalendarEvent from both angular-calendar and calendar-utils but get the same error.
The difference between this component and all of the others is that this is a Angular Material Dialog. The error is caused by using this interface on the data that is injected into the dialog as seen below.
constructor(public dialogRef: MatDialogRef<EventDialogComponent>,
@Inject(MAT_DIALOG_DATA) public data: CalendarEvent) {
...
}
I do know this had been working for a while and then suddenly stopped working today.
Changing the type to any gets around the issue, but then enables us to make possible errors down the road with no type set.
Minimal reproduction of the problem with instructions
I don’t have one. Sorry
Versions
@angular/core
: 8.0.2angular-calendar
: 0.27.11typescript
: 3.4.5Browser name and version:
Chrome 75.0.3770.100
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Fix problems importing - Google Calendar Help
Read the steps for exporting from Google Calendar or check for help information about exporting from another calendar application.
Read more >Export Events not working - - The Events Calendar
The export events button is exporting an empty file. When I open the file or import it to my Outlook or Google calendar,...
Read more >New Outlook cannot export events from Calendar?
Hello, I have recently switched to new Outlook, however I have found out that you cannot simply drag calendar events on the desktop...
Read more >Import or export calendars on Mac - Apple Support
Import events from a calendar file · In the Calendar app on your Mac, if needed, create a new calendar for the events....
Read more >Exporting Events From Your Calendar - Timely Help Center
This feature is activated by default. If the subscribe buttons below your calendar are not showing up, make sure the setting "Hide Subscribe/Add...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
8.0.5
of the cli was just released with the fix: https://github.com/angular/angular-cli/releases/tag/v8.0.5 🎉I’ll leave it open for visibility for others until the cli gets updated with the fix 😄