error in ./node_modules/blive-message-listener/dist/chunk-XFSH6FXD.mjs
Module parse failed: Unexpected token (159:29)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| timestamp: rawData[0][4],
| lottery: rawData[0][9] !== 0,
> emoticon: rawData[0][13]?.emoticon_unique ? {
| id: rawData[0][13].emoticon_unique,
| height: rawData[0][13].height,
@ ./node_modules/blive-message-listener/dist/index.mjs 1:0-3:30 20:2-11
error in ./node_modules/tiny-bilibili-ws/dist/index.cjs
Module parse failed: Unexpected token (20:45)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| function brotliDecompress(buf, options) {
| return new Promise((resolve, reject) => {
> node_zlib.brotliDecompress(buf, options ?? {}, handler(resolve, reject));
| });
| }
@ ./node_modules/blive-message-listener/dist/index.mjs 6:0-47 19:19-30
报错内容如下:
自我排查应该是webpack没有能解析mjs和cjs,不太清楚如何解决 环境: