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.

export 'CalendarEvent' was not found in _____

See original GitHub issue

Describe 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.2
  • angular-calendar: 0.27.11
  • typescript: 3.4.5
  • Browser name and version: Chrome 75.0.3770.100

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mattlewis92commented, Jun 28, 2019

8.0.5 of the cli was just released with the fix: https://github.com/angular/angular-cli/releases/tag/v8.0.5 🎉

0reactions
mattlewis92commented, Jun 26, 2019

I’ll leave it open for visibility for others until the cli gets updated with the fix 😄

Read more comments on GitHub >

github_iconTop 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 >

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