replugged-org / replugged

A lightweight Discord client mod focused on simplicity and performance.
https://replugged.dev/
MIT License
644 stars 64 forks source link

DiscordCanary fails to launch after plug #337

Closed NotPhantomX closed 1 year ago

NotPhantomX commented 1 year ago

Describe the bug

discord canary fails to start after plugging replugged.

Reproduction steps

> pnpm run plug canary
> /opt/discord-canary/DiscordCanary

Expected behavior

discord should open

Actual behavior

discord fails to start with the following error

> /opt/discord-canary/DiscordCanary
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Cannot find module '/home/phantomx/.replugged/scripts/inject/../../dist/main.js'
Require stack:
- /opt/discord-canary/resources/app.asar/index.js
- 
    at Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
    at Function.n._resolveFilename (node:electron/js2c/browser_init:249:1105)
    at Module._load (node:internal/modules/cjs/loader:785:27)
    at Function.c._load (node:electron/js2c/asar_bundle:5:13343)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/opt/discord-canary/resources/app.asar/index.js:1:1)
    at Module._compile (node:internal/modules/cjs/loader:1116:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)

Additional information

OS: Fedora 37 node -v: v18.12.1 pnpm --version: 7.25.0 discord installed with RPM-Outpost/discord discord version: 0.0.146

Please confirm the following

asportnoy commented 1 year ago

You forgot to build Replugged