# Running p5.js sketch error

**URL:** <https://discourse.processing.org/t/running-p5-js-sketch-error/1492>\
**Category:** p5.js\
**Created:** [July 4, 2018, 12:35pm UTC](https://discourse.processing.org/t/running-p5-js-sketch-error/1492 "2018-07-04T12:35:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [July 4, 2018, 1:49pm UTC](https://discourse.processing.org/t/running-p5-js-sketch-error/1492/2 "2018-07-04T13:49:28Z")

</div>

You may try out OpenProcessing instead: 🤠

> **[My Sketch - Guest User - OpenProcessing](https://openprocessing.org/sketch/create)**

[![](https://img.youtube.com/vi/vNjobQiQZns/hqdefault.jpg "9.18: p5.js with OpenProcessing and Processing IDE - p5.js Tutorial") ](https://www.youtube.com/watch?v=vNjobQiQZns)

Or simply use any Firefox-based browser to open your “index.html” file: 🤑

> [@How i extends class in p5.js?](https://discourse.processing.org/t/how-i-extends-class-in-p5-js/894/11):
>
> AFAIK, PDE’s p5js Mode doesn’t allow the instance mode approach I guess. grimacing The easiest way to run my demo sketches is by having any Firefox-based browser installed in your OS. star_struck I recommend Firefox Developer Edition, Waterfox & Palemoon: sunglasses[https://www.mozilla.org/en-US/firefox/developer/all/](https://www.mozilla.org/en-US/firefox/developer/all/) Create some folder and then place both files “index.html” & “sketch.js” there. Finally open any Firefox-based browser and drag & drop the “index.html” file there. It …

You can use this minimal “index.html” template btW: 😇

```auto
<script defer src=https://CDN.JsDelivr.net/npm/p5></script>
<script defer src=sketch.js></script>

```

---

_[View the full topic](https://discourse.processing.org/t/running-p5-js-sketch-error/1492)._
