Encountering an 'is not a function' error in Angular 7 / TypeScript 3, using an EventEmitter. This issue has been extensively discussed (a b), but solutions have not garnered many upvotes (a b c d e f). I am close to resolving it, but need some assistance to get it right.
Check out this StackBlitz example with the error. ...and another similar one without the error.
The only noticeable distinction is that in the case of the error, the event emitter and receiver are located in sibling folders. In the functioning scenario, the event receiver is in a parent folder and the emitter in a child folder.
It appears that some adjustments to import/modules are necessary to fix the malfunctioning setup, but I'm struggling to figure it out. Any suggestions?