-
Notifications
You must be signed in to change notification settings - Fork 12k
Failed to load resource - app.component.css #1648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
In your sample project I changed
Edit: It doesn't look like you tried to use |
@bpyle0092 beta.10 without webpack - used beta.11-webpack.2 the module.id is no longer required. It is therefore odd with no compiler-error but error finding the css. the dashboardRoutes is reference in |
Could you elaborate on this step you listed:
I don't fully understand what you were doing. |
@bpyle0092 - elaborating The same thing happens if you do This behavior is mentioned in #1642 |
@bpyle0092 The app fails to load if login.component has
and works if login.component has
while three other components app/dashboard/token-ttl has
|
Finally tracked it down A missing
Closing the issue. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
1. OS.
Linux 4.6.4-1-ARCH #1 SMP PREEMPT Mon Jul 11 19:12:32 CEST 2016 x86_64 GNU/Linux
2. Versions.
angular-cli: 1.0.0-beta.11-webpack.2
node: 6.3.1
3. Repro steps.
Sample project https://github.com/fhdk/ng2-cli-webpack.2 demonstrating the issue
EDIT 2016-08-12: updated sample project
ng new dash
ng generate component dashboard
Run
ng serve
and watch out for the changesMove content from
./index.ts
toapp/index.ts
and delete itAdd
app/dashboard/dashboard.routes.ts
and contentAdd
app/app.routes.ts
and contentmodify
app/app.module.ts
adding imports and providersAdd a new component where no route is needed
ng generate shared/cmpnt
The
ng generate component
is messing with me.Locate
/shared/
folder in project root and copy contents ofindex.ts
toroot/src/app/shared/index.ts
and delete the theroot/shared
folderAdd
<router-outlet></router-outlet>
toapp/app.component.html
Wait on webpack rebuild
The browser hangs at
Loading...
4. The log given by the failure.
5. Mention any other details that might be useful.
N/A
The text was updated successfully, but these errors were encountered: