MQTT.js icon indicating copy to clipboard operation
MQTT.js copied to clipboard

[email protected] run mqtt fail

Open conkyliu opened this issue 3 years ago • 3 comments

`ERROR in ./node_modules/readable-stream/lib/_stream_readable.js 46:13-37 Module not found: Error: Cannot find file: 'index.js' does not match the corresponding name on disk: './node_modules/buffer/Buffer'. @ ./node_modules/readable-stream/readable-browser.js 1:10-63 @ ./node_modules/mqtt/lib/client.js 12:15-50 @ ./node_modules/mqtt/lib/connect/index.js 3:17-37 @ ./src/App.js 8:0-24 27:17-29 @ ./src/index.js 7:0-24 11:33-36

ERROR in ./node_modules/readable-stream/lib/_stream_writable.js 70:13-37 Module not found: Error: Cannot find file: 'index.js' does not match the corresponding name on disk: './node_modules/buffer/Buffer'. @ ./node_modules/readable-stream/readable-browser.js 4:0-55 @ ./node_modules/mqtt/lib/client.js 12:15-50 @ ./node_modules/mqtt/lib/connect/index.js 3:17-37 @ ./src/App.js 8:0-24 27:17-29 @ ./src/index.js 7:0-24 11:33-36

ERROR in ./node_modules/readable-stream/lib/internal/streams/buffer_list.js 74:15-32 Module not found: Error: Cannot find file: 'index.js' does not match the corresponding name on disk: './node_modules/buffer/Buffer'. @ ./node_modules/readable-stream/lib/_stream_readable.js 72:17-58 @ ./node_modules/readable-stream/readable-browser.js 1:10-63 @ ./node_modules/mqtt/lib/client.js 12:15-50 @ ./node_modules/mqtt/lib/connect/index.js 3:17-37 @ ./src/App.js 8:0-24 27:17-29 @ ./src/index.js 7:0-24 11:33-36

ERROR in ./node_modules/string_decoder/node_modules/safe-buffer/index.js 4:13-30 Module not found: Error: Cannot find file: 'index.js' does not match the corresponding name on disk: './node_modules/buffer/Buffer'. @ ./node_modules/string_decoder/lib/string_decoder.js 24:13-42 @ ./node_modules/readable-stream/lib/_stream_readable.js 163:40-80 325:38-78 @ ./node_modules/readable-stream/readable-browser.js 1:10-63 @ ./node_modules/mqtt/lib/client.js 12:15-50 @ ./node_modules/mqtt/lib/connect/index.js 3:17-37 @ ./src/App.js 8:0-24 27:17-29 @ ./src/index.js 7:0-24 11:33-36

`

conkyliu avatar Dec 15 '21 05:12 conkyliu

same here. webpack 5 has removed support for node buffer.

MrSatan avatar Dec 25 '21 09:12 MrSatan

same. is there any fix or workaround in sight?

erasabi avatar Jan 19 '22 19:01 erasabi

Only this worked for me. But it's a really raw workaround.

msalafia avatar Mar 28 '22 09:03 msalafia

This is an automated message to let you know that this issue has gone 365 days without any activity. In order to ensure that we work on issues that still matter, this issue will be closed in 14 days.

If this issue is still important, you can simply comment with a "bump" to keep it open.

Thank you for your contribution.

github-actions[bot] avatar Mar 29 '23 02:03 github-actions[bot]

This issue was automatically closed due to inactivity.

github-actions[bot] avatar Apr 13 '23 01:04 github-actions[bot]