Missing /app folder

When I start a new ionic2 project the /app folder is missing?

ionic start cutePuppyPics --v2

I have removed and reinstalled everything, but here are my versions:

node 6.7.0
npm 3.10.3
ionic 2.1.0

What am I missing???

1 Like

Assuming your project has generated properly, it’s just inside of the src folder now.

Hey Josh - you’re right. This must be a recent update?

Is it possible this update or the /app folder relocation affected the ability to create new pages from the CLI?

As of just today, running ionic g page pageName does not create a page, and instead I get this error from Terminal:

No ionic-angular package found, do you have Ionic installed? (CLI v2.0.0-beta.37)

Your system information:

Cordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-rc.0
Ionic CLI Version: 2.0.0-beta.37
Ionic App Lib Version: 2.0.0-beta.20
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Mac OS X El Capitan
Node Version: v6.7.0
Xcode version: Xcode 7.3.1 Build version 7D1014

Ok I see that… is there no app.ts file created by default then? I see it referenced in various tutorials. Or is that a file that must be manually created?

It’s a change for the new RC.0 release - app.ts is now app.component.ts, these changes more closely reflect the structure of a normal Angular 2 project.

2 Likes

The generate command should still work, are you still able to generate and serve projects normally?

I have a similar issue - no errors during ionic start with the –v2 tag, but ionic serve returns “Error: ENOENT: no such file or directory, open ‘D:\myApp\www\index.html’”. The index file is in the src directory, but none of the .js scripts referenced in the index are in the app folder. i have removed and reinstalled everything as suggested (latest node, npm, ionic cli). Is there a silent error during generation or do I have to manually generate certain files?

@jwhubert91 - Yes thanks - that make sense, will work with app.component.ts instead.

Just got confused as many of the Ionic2 instructions on the ionic website itself still reference app.ts such as https://docs.ionic.io/setup.html#configuration

Yep, the docs for the cloud platform and our getting started guide are on my next TODO

1 Like

It works. Just needed to restart the CLI. Thanks Josh.

What’s about ionicBootstrap included in app.ts?

I used that for Firebase initialization:

ionicBootstrap(MyApp, [FIREBASE_PROVIDERS, defaultFirebase({
apiKey: “xxxxxxxxxxxxxxx”,
authDomain: “xxxxxxxx.firebaseapp.com”,
databaseURL: “https://xxxxxxxxxxxx.firebaseio.com”,
storageBucket: “xxxxxxxxxxxxxxx.appspot.com
})]);

Maybe I should open another post for Firebase configuration.

All of this is covered in the changelog: https://github.com/driftyco/ionic/blob/master/CHANGELOG.md

Helloo,i’m missing js folder in www folder any idea why?also, index.html is missing and ionic serve command is not working well saying CLI functionality error.
node version – 6.10.3
ionic – 3.0.0
npm – 3.10.10

What shall i do ??