nodeScratchpad icon indicating copy to clipboard operation
nodeScratchpad copied to clipboard

Make including packages possible

Open CodingBobby opened this issue 6 years ago • 0 comments

When trying to require an npm package or any other local .js file, an error appears saying it was not found.

internal/modules/cjs/loader.js:583
    throw err;
    ^
Error: Cannot find module 'module-name-or-path'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
    at Function.Module._load (internal/modules/cjs/loader.js:507:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at [eval]:1:13
    at Script.runInThisContext (vm.js:96:20)
    at Object.runInThisContext (vm.js:303:38)
    at Object.<anonymous> ([eval]-wrapper:6:22)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at evalScript (internal/bootstrap/node.js:576:27)

It would be a very useful feature to have.

CodingBobby avatar May 12 '19 23:05 CodingBobby