discord-rich-presence
discord-rich-presence copied to clipboard
building for browser fails
> [email protected] build:browser /home/user/rpc
> webpack
Hash: c125bc1a48175ceedc4a
Version: webpack 3.12.0
Time: 177ms
Asset Size Chunks Chunk Names
browser.js 21.4 kB 0 [emitted] main
[0] ./index.js 1.75 kB {0} [built]
+ 6 hidden modules
ERROR in ./node_modules/discord-rpc/src/client.js
Module parse failed: Unexpected token (634:8)
You may need an appropriate loader to handle this file type.
| return this.request(RPCCommands.GET_RELATIONSHIPS)
| .then((o) => o.relationships.map((r) => ({
| ...r,
| type: types[r.type],
| })));
@ ./node_modules/discord-rpc/src/index.js 6:10-29
@ ./index.js
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build:browser: `webpack`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build:browser 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! /home/user/.npm/_logs/2021-12-05T03_56_38_219Z-debug.log
The same mistake, found a solution?
Nah, gave up on it lol