bug: angular-cli build tool example not working in stackblitz
See original GitHub issueDescribe the bug
If you’re not aware, Stackblitz has an awesome feature that allows it to import an angular-cli
project from github for easy testing. Unfortunately, the angular-calendar
angular-cli build tool example produces the following error when imported (unchanged) into stackblitz:
ERROR
Error: StaticInjectorError(AppModule)[DraggableDirective -> ElementRef]:
StaticInjectorError(Platform: core)[DraggableDirective -> ElementRef]:
NullInjectorError: No provider for ElementRef!
This error appears to leave the angular-cli example unusable and prevent it from fully rendering. At this moment, I’m not sure if it’s a stackblitz only problem.
Minimal reproduction of the problem with instructions
Simply navigate to the angular-cli build tool example inside this repo and change “github” in the url to “stackblitz” and add “/github” immediately preceding “stackblitz.com”. Or just click on this link: https://stackblitz.com/github/mattlewis92/angular-calendar/tree/master/build-tool-examples/angular-cli
If you open up the stackblitz console, you’ll see the error.
Screenshots
Versions
@angular/core
: 6.1.10angular-calendar
: 0.26.4- Browser name and version: Google Chrome 70
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top GitHub Comments
Ah, I got it, I had a kill switch but never actually tested it, it should work now. Thanks for reporting that, I would have had no idea otherwise! 😄
Re-opening as a reminder to find a workaround to force unregistering it