discord-rich-presence icon indicating copy to clipboard operation
discord-rich-presence copied to clipboard

building for browser fails

Open renhiyama opened this issue 4 years ago • 2 comments

> [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

renhiyama avatar Dec 05 '21 03:12 renhiyama

The same mistake, found a solution?

progzone122 avatar Jun 20 '22 12:06 progzone122

Nah, gave up on it lol

renhiyama avatar Jun 20 '22 16:06 renhiyama