Ionic-framework: RC1 - Failed to load resource

Created on 14 Oct 2016  路  10Comments  路  Source: ionic-team/ionic-framework

I've updated to RC1 by modifying my package.json. When I run ionic serve, the result in localhost:8100 is blank page displaying these errors:

Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8100/build/main.css
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:8100/build/main.js

It seems that the files are never built, as the www/build directory contains only one file, polyfills.js.

System info:

Cordova CLI: 6.2.0
Gulp version: CLI version 3.9.1
Gulp local:
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
OS: Windows 7 SP1
Node Version: v6.5.0

Most helpful comment

Had the same problem, went back to app-scripts 0.0.30 and it worked.

All 10 comments

using the latest "@ionic/app-scripts": "^0.0.33"

I've tried it, but unfortunately, it's still not working (same error)

i have the same problem. even if update ionic-app-scripts to latest version.

Strange enough, if I create a new project and copy the src folder from the old one, it works well.

:+1:

Had the same problem, went back to app-scripts 0.0.30 and it worked.

@juliolemesti thanks, works after changing it to 0.0.30

I was getting the same blank page. And if it helps, after saving a file and kicking off the watch, I'd get this:

ionic $ [10:38:41]  template update started ...
[10:38:41]  bundle update started ...
(node:20102) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Could not resolve './app.module' from /Users/me/Work/test-app/src/app/main.dev.ts

Back to 0.0.30 I go.

This issue was moved to driftyco/ionic-app-scripts#166

Hello all! Since this was a build related issue and not a framework issue i have moved this issue to the app-scripts repo. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Nick-The-Uncharted picture Nick-The-Uncharted  路  3Comments

SebastianGiro picture SebastianGiro  路  3Comments

RobFerguson picture RobFerguson  路  3Comments

giammaleoni picture giammaleoni  路  3Comments

brandyscarney picture brandyscarney  路  3Comments