# Unable to setup p5js web editor locally

**URL:** https://discourse.processing.org/t/unable-to-setup-p5js-web-editor-locally/44730
**Category:** Beginners
**Created:** [July 8, 2024, 9:07am UTC](https://discourse.processing.org/t/unable-to-setup-p5js-web-editor-locally/44730 "2024-07-08T09:07:26Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![faisu](https://avatars.discourse-cdn.com/v4/letter/f/8e8cbc/32.png) [@faisu](https://discourse.processing.org/u/faisu)
#### Post date: [July 8, 2024, 9:07am UTC](https://discourse.processing.org/t/unable-to-setup-p5js-web-editor-locally/44730/1 "2024-07-08T09:07:26Z")

</div>

When I run `npm start` in my p5js-web-editor repo. I get this error:

```auto
/Users/faisal_imtiyaz/Desktop/openSource/p5.js-web-editor/server/server.js:44
var MongoStore = (0, _connectMongo["default"])(_expressSession["default"]);
                                              ^

TypeError: Class constructor MongoStore cannot be invoked without 'new'
    at Object.<anonymous> (/Users/faisal_imtiyaz/Desktop/openSource/p5.js-web-editor/server/server.js:35:32)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Module._compile (/Users/faisal_imtiyaz/Desktop/openSource/p5.js-web-editor/node_modules/pirates/lib/index.js:117:24)
    at Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
    at Object.newLoader [as .js] (/Users/faisal_imtiyaz/Desktop/openSource/p5.js-web-editor/node_modules/pirates/lib/index.js:121:7)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/faisal_imtiyaz/Desktop/openSource/p5.js-web-editor/index.js:18:3)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47
[nodemon] app crashed - waiting for file changes before starting...

```

node-version :`16.14.2`

---

<div class="post-metadata">

### Author: ![sableraph](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sableraph/32/251_2.png) [@sableraph](https://discourse.processing.org/u/sableraph)
#### Post date: [July 12, 2024, 9:47am UTC](https://discourse.processing.org/t/unable-to-setup-p5js-web-editor-locally/44730/2 "2024-07-12T09:47:00Z")

</div>

Hi @faisu

If you haven’t already, I’d recommend reading the development installation instructions [here](https://github.com/processing/p5.js-web-editor/blob/develop/contributor_docs/installation.md).

Make sure you are using the correct version of Node and that MongoDB is installed and running.

cc @raclim

---

<div class="post-metadata">

### Author: ![faisu](https://avatars.discourse-cdn.com/v4/letter/f/8e8cbc/32.png) [@faisu](https://discourse.processing.org/u/faisu)
#### Post date: [July 12, 2024, 10:06am UTC](https://discourse.processing.org/t/unable-to-setup-p5js-web-editor-locally/44730/3 "2024-07-12T10:06:51Z")

</div>

@sableraph Thanks for taking time to reply. I did the docker development setup and encountered the same error

---

<div class="post-metadata">

### Author: ![sableraph](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sableraph/32/251_2.png) [@sableraph](https://discourse.processing.org/u/sableraph)
#### Post date: [July 13, 2024, 11:54am UTC](https://discourse.processing.org/t/unable-to-setup-p5js-web-editor-locally/44730/4 "2024-07-13T11:54:40Z")

</div>

Someone on the p5.js discord said

> [Upgrade MongoDB Driver Dependencies by raclim · Pull Request #3187 · processing/p5.js-web-editor · GitHub](https://github.com/processing/p5.js-web-editor/pull/3187) - mongodb dependencies were updated yesterday; unsure if related

You could also try asking on the repository.

---

<div class="post-metadata">

### Author: ![raclim](https://avatars.discourse-cdn.com/v4/letter/r/bbe5ce/32.png) [@raclim](https://discourse.processing.org/u/raclim)
#### Post date: [July 15, 2024, 2:58pm UTC](https://discourse.processing.org/t/unable-to-setup-p5js-web-editor-locally/44730/5 "2024-07-15T14:58:50Z")

</div>

Thanks for raising this @faisu After looking into this, I realized that there were some issues with our Docker configuration!

I personally don’t use Docker as often so I didn’t realize some of it had fallen out of date—I’m sorry about that! However, I wasn’t able to encounter this particular issue that you’re experiencing. I think this might come up if you newer versions of `mongoose` or `connect-mongo` installed. I did upgrade them near the end of last week, but it seems like this issue had been occurring before these upgrades were merged, so I’m not entirely sure what might be happening there 🤔

I just upgraded the Docker configuration, which also updates the `mongo` version. Maybe you could try reinstalling it with these updates?

---

<div class="post-metadata">

### Author: ![faisu](https://avatars.discourse-cdn.com/v4/letter/f/8e8cbc/32.png) [@faisu](https://discourse.processing.org/u/faisu)
#### Post date: [July 15, 2024, 3:33pm UTC](https://discourse.processing.org/t/unable-to-setup-p5js-web-editor-locally/44730/6 "2024-07-15T15:33:28Z")

</div>

Thankyou @raclim for taking time to reply. Will sure try what you suggest.
