Skip to content

Instantly share code, notes, and snippets.

@inabahare
Created July 8, 2020 11:39
Show Gist options
  • Save inabahare/32e46118c5603026e56a37fa9c3f8b76 to your computer and use it in GitHub Desktop.
Save inabahare/32e46118c5603026e56a37fa9c3f8b76 to your computer and use it in GitHub Desktop.
Peddit roast
{
"type": "node",
"request": "launch",
"name": "Launch Main App",
"preLaunchTask": "npm: build",
"program": "src/index.js",
"sourceMaps": true,
"outFiles": [
"dist/**/*.js"
],
"envFile": "${workspaceFolder}/../../.env",
"runtimeArgs": [
"--require=dotenv/config"
]
}
/home/inaba/.nvm/versions/node/v14.2.0/bin/node --require=dotenv/config src/index.js
Debugger listening on ws://127.0.0.1:37415/cfd85b21-0bdc-4017-a518-75681107a29a
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
(node:39363) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
Waiting for the debugger to disconnect...
/home/inaba/Programming/Lewd/packages/main-site/src/index.js:1
import express from "express";
^^^^^^
SyntaxError: Cannot use import statement outside a module
at Object.compileFunction (vm.js:344:18)
at wrapSafe (internal/modules/cjs/loader.js:1106:15)
at Module._compile (internal/modules/cjs/loader.js:1140:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
at Module.load (internal/modules/cjs/loader.js:1040:32)
at Function.Module._load (internal/modules/cjs/loader.js:929:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment