# MODULE\_NOT\_FOUND during launch process in Visual Studio Code

**URL:** <https://community.parseplatform.org/t/module-not-found-during-launch-process-in-visual-studio-code/2027>\
**Category:** Parse Server 📡\
**Created:** [September 27, 2021, 4:35am UTC](https://community.parseplatform.org/t/module-not-found-during-launch-process-in-visual-studio-code/2027 "2021-09-27T04:35:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hkblue](https://community.parseplatform.org/letter_avatar_proxy/v4/letter/h/f14d63/32.png) [@hkblue](https://community.parseplatform.org/u/hkblue)\
**Post date:** [September 27, 2021, 4:35am UTC](https://community.parseplatform.org/t/module-not-found-during-launch-process-in-visual-studio-code/2027/1 "2021-09-27T04:35:53Z")

</div>

Hi, I am using Visual Studio Code and I created my launch.json file. The parse server config is saved in config.json. Please see the following file.

```auto
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch Program",
            "program": "./bin/parse-server config.json",
            "request": "launch",
            "skipFiles": [
                "<node_internals>/**"
            ],
            "type": "pwa-node",
            "console": "integratedTerminal"
        }
    ]
}

```

However, when I click “start debugging”, VSC says “cannot find module”. However, when I type "parse-server config.json"in VSC terminal. The code works. Please see the following error info. Does anyone know why this happened? Thanks

```auto
parse-server % cd /private/var/www/parse_server_example/parse_server_src/parse-server ; /usr/bin/env 'NODE_OPTIONS=--require "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/ms-vscode.js-debug/src/bootloader.bundle.js" --inspect-publish-uid=http' 'VSCODE_INSPECTOR_OPTIONS={"inspectorIpc":"/var/folders/nm/yg8m79rx6bg46q_p72dr9fyr0000gn/T/node-cdp.47034-17.sock","deferredMode":false,"waitForDebugger":"","execPath":"/usr/local/bin/node","onlyEntrypoint":false,"autoAttachMode":"always","fileCallback":"/var/folders/nm/yg8m79rx6bg46q_p72dr9fyr0000gn/T/node-debug-callback-c1e933366d9ac50e"}' /usr/local/bin/node "./bin/parse-server config.json" 
Debugger attached.
Waiting for the debugger to disconnect...
internal/modules/cjs/loader.js:892
  throw err;
  ^

Error: Cannot find module '/private/var/www/parse_server_example/parse_server_src/parse-server/bin/parse-server config.json'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15)
    at Function.Module._load (internal/modules/cjs/loader.js:745:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

```

---

<div class="post-metadata">

**Author:** ![davimacedo](https://community.parseplatform.org/user_avatar/community.parseplatform.org/davimacedo/32/316_2.png) [@davimacedo](https://community.parseplatform.org/u/davimacedo)\
**Post date:** [September 29, 2021, 6:14am UTC](https://community.parseplatform.org/t/module-not-found-during-launch-process-in-visual-studio-code/2027/2 "2021-09-29T06:14:59Z")

</div>

Try with:

```auto
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch Program",
            "program": "./bin/parse-server",
            "args": ["config.json"],
            "request": "launch",
            "skipFiles": [
                "<node_internals>/**"
            ],
            "type": "pwa-node",
            "console": "integratedTerminal"
        }
    ]
}

```

---

<div class="post-metadata">

**Author:** ![hkblue](https://community.parseplatform.org/letter_avatar_proxy/v4/letter/h/f14d63/32.png) [@hkblue](https://community.parseplatform.org/u/hkblue)\
**Post date:** [September 29, 2021, 5:46pm UTC](https://community.parseplatform.org/t/module-not-found-during-launch-process-in-visual-studio-code/2027/3 "2021-09-29T17:46:10Z")

</div>

This works now. Thanks for your help.
