Www folder not generated with ionic serve

I have created an ionic v4 application from the blank template. When I serve, I am having some problems as described here.

I noticed that no www folder is created. Is this normal? If so, where are the compiled resources served from?

I have the same problem with multiple projects, including if I clone the conference app.

$ ionic info
√ Gathering environment info - done!

Ionic:

   ionic (Ionic CLI)          : 4.1.1
   Ionic Framework            : @ionic/angular 4.0.0-beta.5
   @angular-devkit/core       : 0.7.5
   @angular-devkit/schematics : 0.7.5
   @angular/cli               : 6.1.5
   @ionic/ng-toolkit          : 1.0.7
   @ionic/schematics-angular  : 1.0.5

System:

   NodeJS : v8.9.0 (C:\Program Files\nodejs\node.exe)
   npm    : 6.1.0
   OS     : Windows 8.1

Yes it’s normal. Angular v6 doesn’t create files on the file system anymore while doing ng serve respectively ionic serve. Instead of creating files it generates and handles everything in memory

1 Like

If you need the www folder, ionic build should do the trick.

2 Likes

thx for the good addition :+1:

Thanks.

Any thoughts on the loading problems that I am experiencing?

The bug you describe sounds to me like you’ve got a compilation error you didn’t noticed

Otherwise no idea

This is happening with all my projects, as well as a new blank starter, or conference app. So not a compilation error.

After refreshing the page several times, or waiting a long time, the problem is resolved.

Did you try another computer? Sounds like something is blocking or caching file access locally.

Haven’t tried another computer, but I also suspect it is something local.

I’ve tried firefox and chrome. I’ve tried disabling antivirus.

An ad blocker maybe?

No - don’t have one installed. I’ve also tried running chrome with no plugins or extensions.

could you parse you ionic info (I mean full, it’s just a part right what you posted above)?

It’s up top in the original post.

That’s all of it. What else should be there?

@Oldstadt By the way: It would help a lot if you created a new topic for your “it takes long to create the files” folder instead of posting in a topic called “www fodler not generated”.

Ummmm I don’t know, checked your ionic info, the only difference (except that on a mac) is that I’ve got @ionic/angular 4.0.0-beta.6 and not beta-5 and I also use node v10.4.0 not 8

Which typescript version are you running? v2.9.2? Angular >= 6.1?

When the blank screen finally popup, do you see any error msg in the console.log?

In the debugger, when you observe the network, does stuffs happens? did you see that some resources aren’t loaded?

@Sujan12 I have created a new topic for this (Ionic serve takes long to create files)
@reedrichards I have answered your questions in the new topic.

2 Likes

Thank you very much , it’s work fine :slight_smile: