Error when creating ionic 2 sidemenu template app


#1

Hi there

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)

How can I rectify this?


#2

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>

Ionic serve --lab not working in ionic 2 rc.1
Blank screen in new v2 app using sidemenu template
#3

No problem, thanks …I can of course just include the side menu myself(i did) but just wanted to know if I missed something with my install


#4

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.


#5

For me it did work well