discord.js-lavalink icon indicating copy to clipboard operation
discord.js-lavalink copied to clipboard

"Cannot find module" error

Open Dwigoric opened this issue 4 years ago • 0 comments

I am getting this error:

internal/modules/cjs/loader.js:326
      throw err;
      ^

Error: Cannot find module '[redacted path]\node_modules\discord.js-lavalink\dist\index'. Please verify that the package.json has a valid "main" entry
    at tryPackage (internal/modules/cjs/loader.js:318:19)
    at Function.Module._findPath (internal/modules/cjs/loader.js:700:18)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:963:27)
    at Function.Module._load (internal/modules/cjs/loader.js:859:27)
    at Module.require (internal/modules/cjs/loader.js:1036:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> ([redacted path])
    at Module._compile (internal/modules/cjs/loader.js:1147:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1167:10)
    at Module.load (internal/modules/cjs/loader.js:996:32) {
  code: 'MODULE_NOT_FOUND',
  path: '[redacted path]\\node_modules\\discord.js-lavalink\\package.json',
  requestPath: 'discord.js-lavalink'

I am using the latest commit (1e55e05 at the time.)

Dwigoric avatar Mar 14 '20 03:03 Dwigoric