When I run the ionic 2 side menu template I get a blank screen and see files missing in my console.
The other templates run fine.
I have the latest version of ionic installed …2.1.1
in my chrome console i see a bunch of files missing
failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:8100/build/js/es6-shim.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:8100/build/js/Reflect.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:8100/build/js/zone.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:8100/build/js/app.bundle.js Failed to load resource: the server responded with a status of 404 (Not Found)
Hey there, sorry about this. It seems we were still supplying an old www/index.html file in the starter.
I just fixed it, so if you start a new sidemenu project it’ll work. Otherwise, replace the www/index.html file in your project with this and let me know how it works for you:
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<title>Ionic App</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
<link rel="icon" type="image/x-icon" href="assets/icon/favicon.ico">
<link rel="manifest" href="manifest.json">
<meta name="theme-color" content="#4e8ef7">
<!-- un-comment this code to enable service worker
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('service-worker.js')
.then(() => console.log('service worker installed'))
.catch(err => console.log('Error', err));
}
</script>-->
<link href="build/main.css" rel="stylesheet">
</head>
<body>
<!-- Ionic's root component and where the app will load -->
<ion-app></ion-app>
<!-- cordova.js required for cordova apps -->
<script src="cordova.js"></script>
<!-- The polyfills js is generated during the build process -->
<script src="build/polyfills.js"></script>
<!-- The bundle js is generated during the build process -->
<script src="build/main.js"></script>
</body>
</html>
I just tried to create a new sidemenu starter project using:
ionic start testProject sidemenu --v2
Now the starter project is broken because the www/index.html file is missing entirely.