'Angular's 'ng serve' on Windows gives error 'component cannot be used as an entry component' but its fine in Linux
This question is not about the usage of entry components but the behaviour of 'ng serve' on Windows vs Linux.
On Windows, when I 'ng serve' my app I'll get an error that one of my entry components cannot be used as an entry component. If I then force save any .ts file the compilation will complete without errors and everything works fine. Removing the entry component causes another entry component to be the error.
But on Linux (or working in a Docker container) this problem does not occur. I have a lot of entry components so maybe this is a file system issue?
Doing 'ng build' works fine in Windows and Linux.
Edit: The Angular version is 6.0.8
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
