# Unable to setup local development environment (dev/inspector)

**URL:** <https://forum.babylonjs.com/t/unable-to-setup-local-development-environment-dev-inspector/52876>\
**Category:** Questions\
**Tags:** inspector, localdev\
**Created:** [August 17, 2024, 4:16pm UTC](https://forum.babylonjs.com/t/unable-to-setup-local-development-environment-dev-inspector/52876 "2024-08-17T16:16:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kalila](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/kalila/32/39877_2.png) [@Kalila](https://forum.babylonjs.com/u/Kalila)\
**Post date:** [August 17, 2024, 4:16pm UTC](https://forum.babylonjs.com/t/unable-to-setup-local-development-environment-dev-inspector/52876/1 "2024-08-17T16:16:11Z")

</div>

Scenario:

I am trying to setup my local Babylon.js dev environment to test upgrades I am making to the Inspector with my existing app. I have tried multiple mixes of imports to get the local dev environment working and well, I’m not entirely sure what the correct way is.

I have also used link as per the instructions, trying to link `@dev/inspector` to no avail.

Error, and I get many different variants of this if I try to link locally other Babylon packages as well:

```auto
[plugin:vite:import-analysis] Failed to resolve import "core/Misc/observable" from "../Babylon.js/packages/dev/inspector/dist/inspector.js". Does the file exist?
../src/inspector.ts:7:27
1 | import * as React from "react";
2 | import * as ReactDOM from "react-dom";
3 | import { Observable } from "core/Misc/observable";
   | ^
4 | import { EngineStore } from "core/Engines/engineStore";
5 | import { SceneLoader } from "core/Loading/sceneLoader";

```

Imports in the app’s package.json:

```auto
"@babylonjs/core": "^7.21.4",
"@babylonjs/inspector": "file:///[local path in system]/Babylon.js/packages/dev/inspector",
"@babylonjs/loaders": "^7.21.4",

```

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [August 19, 2024, 10:03am UTC](https://forum.babylonjs.com/t/unable-to-setup-local-development-environment-dev-inspector/52876/2 "2024-08-19T10:03:42Z")

</div>

cc @RaananW

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [August 19, 2024, 1:02pm UTC](https://forum.babylonjs.com/t/unable-to-setup-local-development-environment-dev-inspector/52876/3 "2024-08-19T13:02:08Z")

</div>

You would normally need to use npm link for this. this is detailed here : [Babylon.js docs](https://doc.babylonjs.com/contribute/toBabylon/HowToContribute#link-a-public-project-to-an-external-one)

---

<div class="post-metadata">

**Author:** ![Kalila](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/kalila/32/39877_2.png) [@Kalila](https://forum.babylonjs.com/u/Kalila)\
**Post date:** [August 22, 2024, 4:28pm UTC](https://forum.babylonjs.com/t/unable-to-setup-local-development-environment-dev-inspector/52876/4 "2024-08-22T16:28:13Z")

</div>

I tried many variations of that, I suppose my question would be is that section all I need to do or is there something special I was missing here?

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [August 22, 2024, 8:41pm UTC](https://forum.babylonjs.com/t/unable-to-setup-local-development-environment-dev-inspector/52876/5 "2024-08-22T20:41:40Z")

</div>

You should only need this:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/3/1/314ce800c305df10b71c6bc32d00705e1dc31e34.png)
