A
A
alex4answ2020-09-02 14:29:21
Node.js
alex4answ, 2020-09-02 14:29:21

Debug console VS Code catches random library exceptions?

Good afternoon, I use the debug console to populate the process.env variables from the .env file (not using dotenv)

launch.json

{
      "console": "integratedTerminal",
      "internalConsoleOptions": "neverOpen",
      "name": "nodemon",
      "program": "${workspaceFolder}/app.js",
      "request": "launch",
      "restart": true,
      "runtimeExecutable": "nodemon",
      "skipFiles": [
        "${workspaceFolder}/node_modules/**",
        "<node_internals>/**/*.js"
      ],
      "envFile":"${workspaceFolder}/.env",
      "type": "node"
  }


As a result, I can’t even launch applications, various exceptions fall out, up to:
Cannot find module 'fsevents' (I run on win, fsevents only for mac)
No such module was linked: atom_browser_v8_util
Exception has occurred: TypeError: Cannot assign to read only property 'name' of function 'function generateUUID
etc.
Just some random errors, exceptions from ready-made libraries, etc.

Please tell me what I'm doing wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question