# No www found in root of project

**URL:** <https://forum.ionicframework.com/t/no-www-found-in-root-of-project/148936>\
**Category:** Appflow\
**Created:** [November 29, 2018, 6:32am UTC](https://forum.ionicframework.com/t/no-www-found-in-root-of-project/148936 "2018-11-29T06:32:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulhoadley](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/paulhoadley/32/122956_2.png) [@paulhoadley](https://forum.ionicframework.com/u/paulhoadley)\
**Post date:** [November 29, 2018, 6:32am UTC](https://forum.ionicframework.com/t/no-www-found-in-root-of-project/148936/1 "2018-11-29T06:32:46Z")

</div>

Hi,

I’ve just set up an Ionic 3 project in Appflow. It fails in the `build-app` step:

`[06:08:50]: No www found in root of project.`

That’s correct: `www` isn’t under version control. Can anyone suggest how to deal with this (that doesn’t involved committing `www` to version control)?

---

<div class="post-metadata">

**Author:** ![mathewk](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mathewk](https://forum.ionicframework.com/u/mathewk)\
**Post date:** [November 29, 2018, 6:34am UTC](https://forum.ionicframework.com/t/no-www-found-in-root-of-project/148936/2 "2018-11-29T06:34:41Z")

</div>

Run

> ionic serve

and check

---

<div class="post-metadata">

**Author:** ![paulhoadley](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/paulhoadley/32/122956_2.png) [@paulhoadley](https://forum.ionicframework.com/u/paulhoadley)\
**Post date:** [December 1, 2018, 10:36am UTC](https://forum.ionicframework.com/t/no-www-found-in-root-of-project/148936/3 "2018-12-01T10:36:01Z")

</div>

Thanks for the reply. I can’t replicate the issue locally, this is only building on Appflow. After cloning the repo, I can confirm:

- there’s no `www` directory
- `npm install` then `ionic build` succeeds, and the `www` directory is generated as expected.

I’ve got some support from Appflow, and I think the issue was a typo in `package.json`—I’ll report back when I can confirm that, but can’t currently kick off a build because in an unrelated issue webhooks integration from Bitbucket seems to be hosed. It’s not my day/week.

---

<div class="post-metadata">

**Author:** ![paulhoadley](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/paulhoadley/32/122956_2.png) [@paulhoadley](https://forum.ionicframework.com/u/paulhoadley)\
**Post date:** [December 2, 2018, 12:27am UTC](https://forum.ionicframework.com/t/no-www-found-in-root-of-project/148936/4 "2018-12-02T00:27:05Z")

</div>

> I think the issue was a typo in `package.json`

Indeed: somehow under `scripts`, the `build` entry had morphed into `builds`. The original error message was not super-helpful, but reverting this to `build` worked.

---

<div class="post-metadata">

**Author:** ![pvielhaber](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/pvielhaber/32/126768_2.png) [@pvielhaber](https://forum.ionicframework.com/u/pvielhaber)\
**Post date:** [February 17, 2020, 5:25pm UTC](https://forum.ionicframework.com/t/no-www-found-in-root-of-project/148936/5 "2020-02-17T17:25:47Z")

</div>

Bit of follow-up info for anyone else curious.  
I tried to clean-up my package.json, because there was a lot of random noise in it from previous dev groups, and I removed the following lines…

```javascript
"start": "ionic-app-scripts serve",
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint"

```

…from my scripts object not knowing they were needed for App Flow. I replaced them and re-ran my App Flow build with success.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:01pm UTC](https://forum.ionicframework.com/t/no-www-found-in-root-of-project/148936/6 "2021-07-19T21:01:41Z")

</div>

Closed on July 19, 2021, 9:01pm UTC


