discordjs / RPC

A simple RPC client for Discord

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

discord-rpc in conjunction with Vue 2

progzone122 opened this issue · comments

When using discord-rpc in combination with Vue 2, an error occurs. Help me please

./~/discord-rpc/src/client.jsModule parse failed: D:\AnimeShip\node_modules\discord-rpc\src\client.js 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],| }))); @ ./~/discord-rpc/src/index.js 6:10-29 @ ./src/api/rpc.js @ ./src/main.js @ multi ./build/dev-client ./src/main.js