Skip to content

Updated discordjs but modules folder missing prism-media/core directory. #3095

@BannerBomb

Description

@BannerBomb

Please describe the problem you are having in as much detail as possible:
After I updated discord.js, I get an error while booting my bot that says it can't find ../src/core/ directory from node_modules/discord.js/node_modules/prism-media/core I checked to see if the directory was there but it wasn't so I had to manually download the files and make the core directory. I have tried clearing my entire node_modules folder and reinstalling the packages but still got the error.

Include a reproducible code sample here, if possible:

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

Error: Cannot find module '../core/WebmBase'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:613:15)
    at Function.Module._load (internal/modules/cjs/loader.js:539:25)
    at Module.require (internal/modules/cjs/loader.js:667:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/home/ubuntu/Desktop/highlight/node_modules/discord.js/node_modules/prism-media/src/opus/WebmDemuxer.js:1:87)
    at Module._compile (internal/modules/cjs/loader.js:738:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:749:10)
    at Module.load (internal/modules/cjs/loader.js:630:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:570:12)
    at Function.Module._load (internal/modules/cjs/loader.js:562:3)

Further details:

  • discord.js version: master branch (0564c5c777cfd2391261417a2047d4d7f92474ca)
  • Node.js version: v11.10.0
  • Operating system: Ubuntu 18.04.1 LTS 64-bit
  • Priority this issue should have – please be realistic and elaborate if possible:
  • I have also tested the issue on latest master, commit hash:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions