Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Inject #203

Closed
2 tasks done
dhanrahl opened this issue Sep 26, 2022 · 5 comments
Closed
2 tasks done

Unable to Inject #203

dhanrahl opened this issue Sep 26, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@dhanrahl
Copy link

Describe the bug
Unable to inject RePlugged

To Reproduce
npm run plug [Version]

Expected behavior
Well, inject I suppose.

Desktop (please complete the following information):

  • OS: Microsoft Windows [Version 10.0.19044.2006]
  • Replugged version: Latest Release

Additional context

  • I checked if Discord and/or Replugged are up to date
  • I made sure this is not related to an external plugin or a theme

Error output in file below.
2022-09-26T21_14_03_327Z-debug.log

@dhanrahl dhanrahl added the bug Something isn't working label Sep 26, 2022
@dhanrahl
Copy link
Author

Noticed log doesn't output the error in console. Additional information:

`PS C:\Users\D'han Rahl\replugged> npm run plug Stable

replugged@3.0.15-t1 plug C:\Users\D'han Rahl\replugged
node injectors/index.js inject --no-exit-codes "Stable"

C:\Users\D'han Rahl\replugged\injectors\index.js:37
let platform = process.argv[4]?.toLowerCase();
^

SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! replugged@3.0.15-t1 plug: node injectors/index.js inject --no-exit-codes "Stable"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the replugged@3.0.15-t1 plug script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\D'han Rahl\AppData\Roaming\npm-cache_logs\2022-09-26T21_14_03_327Z-debug.log`

@dhanrahl dhanrahl reopened this Sep 26, 2022
@dhanrahl
Copy link
Author

dhanrahl commented Sep 26, 2022

Went in and removed ?.toLowerCase() from index.js:37 and was able to actually run the script, but no injection on stable, despite confirmation from npm command.

@Vendicated

This comment was marked as spam.

@dhanrahl
Copy link
Author

Alright, I"ll update my node. I saw it was broken for Canary but hadn't seen anything about Stable yet.

@dhanrahl
Copy link
Author

That indeed fixed the issue, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants