# Ionic 2 - Uncaught ReferenceError: ionic is not defined

**URL:** <https://forum.ionicframework.com/t/ionic-2-uncaught-referenceerror-ionic-is-not-defined/42065>\
**Category:** ionic-v3\
**Created:** [January 26, 2016, 3:00am UTC](https://forum.ionicframework.com/t/ionic-2-uncaught-referenceerror-ionic-is-not-defined/42065 "2016-01-26T03:00:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![brandyshea](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/brandyshea/32/148286_2.png) [@brandyshea](https://forum.ionicframework.com/u/brandyshea)\
**Post date:** [January 26, 2016, 3:34pm UTC](https://forum.ionicframework.com/t/ionic-2-uncaught-referenceerror-ionic-is-not-defined/42065/2 "2016-01-26T15:34:59Z")

</div>

You don’t need to add the `--v2` flag when running `ionic serve`. The url needs to have an uppercase p:

```auto
http://localhost:8100/?ionicplatform=android

```

should become

```auto
http://localhost:8100/?ionicPlatform=android

```

How are you getting to this URL?

---

_[View the full topic](https://forum.ionicframework.com/t/ionic-2-uncaught-referenceerror-ionic-is-not-defined/42065)._
