Open gimKondo opened 1 year ago
Cannot find module 'node:path'
のようなエラーはNode.jsのバージョンが古いときに起こることがあるという記事を見かけた。
例: https://stackoverflow.com/questions/72915260/babel-cannot-find-module-nodepath-error-react-native
そこで、Node.jsをv16.18.1からv18.16.0に上げてみた。
しかし、上げて yarn install
すると下記のようなエラーが発生する。
関連しそうなissue
https://qiita.com/tukiyo3/items/c9d638f4c7fe5bcaa4f2#openssl_fips%E6%9C%AA%E5%AE%9A%E7%BE%A9%E3%82%A8%E3%83%A9%E3%83%BC%E5%AF%BE%E5%BF%9C
の記事のように node_modules/node-gyp/gyp/pylib/gyp/input.py
を直接書き換えると yarn install
は正常に終了する。
さらに https://qiita.com/tukiyo3/items/c9d638f4c7fe5bcaa4f2#%E3%83%87%E3%83%90%E3%83%83%E3%82%B0%E8%B5%B7%E5%8B%95%E3%81%95%E3%81%9B%E3%82%8B%E6%96%B9%E6%B3%95 のようなコードを追加することでアプリを起動させることもできる。 (これをやらないと記事にある通りのエラーになる)
しかし、結局、Discord APIで音声を再生しようとすると同じエラーが起きる。
※そもそも node_modules以下の書き換えが必要になる時点で解決方法としてはだめだが。
electronのバージョンが古いことにも関連してそうなので、この辺を片付けると解消しそうな気もする。
概要
Discordモードで音声を再生しようとしても音が鳴らない。
再現方法
:soc: join
と打ち込む期待する動作
3の時点で指定の音楽がDiscordのbotから再生される
環境 (下記の情報を埋めてください)
追加情報
デバッグ時のポップアップ
yarn electron:serve
で実行してDiscordモードで音声を再生すると以下のようなエラーポップアップが出る。