You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run angular-playground, the first build always fails with a message "PlaygroundModule is not an NgModule". If I save any file, webpack rebuilds successfully.
This is a minor annoyance when running angular-playground because it automatically triggers a rebuild. When you run with -no-serve and manually run with ng serve -a playground you have to know to save a file manually in order to make it build. This could confuse new users.
The text was updated successfully, but these errors were encountered:
I noticed that and I think this might be an issue in AngularCLI that is
causing this. I am going to investigate it further this afternoon and let
you know!
On Mon, Feb 27, 2017, 1:21 PM isaacplmann ***@***.***> wrote:
When I run angular-playground, the first build always fails with a
message "PlaygroundModule is not an NgModule". If I save any file, webpack
rebuilds successfully.
This is a minor annoyance when running angular-playground because it
automatically triggers a rebuild. When you run with -no-serve and
manually run with ng serve -a playground you have to know to save a file
manually in order to make it build. This could confuse new users.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#14>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/ABL4ZLzV-4Bl6jB-N0NfwkVgA4NFeGWVks5rgz5ggaJpZM4MNpHa>
.
Looks like this is due to the fact that the Angular CLI code (probably @ngtools/webpack more specifically) is reflecting on the bootstrap code and the entry module and trying to "reflect" through the TypeScript code. The Playground app code is transpiled before publish, so it is delivered on npm install as JavaScript. We can fix this by delivering the TS files for the app folder code of Playground.
When I run
angular-playground
, the first build always fails with a message "PlaygroundModule is not an NgModule". If I save any file, webpack rebuilds successfully.This is a minor annoyance when running
angular-playground
because it automatically triggers a rebuild. When you run with-no-serve
and manually run withng serve -a playground
you have to know to save a file manually in order to make it build. This could confuse new users.The text was updated successfully, but these errors were encountered: