I was having issues using MQTT.js on browser with vite. It was throwing me an error that said he cannot found a module, I have investigated and I discovered this:
Manually changing 'string_decoder/' to 'string_decoder' fixed the issue
I know now it is fixed in v4.+ but wondering if that was a typo or it's just a sintax that webpack picks up correctly by stripping suffix / or whatelse?
I was having issues using MQTT.js on browser with vite. It was throwing me an error that said he cannot found a module, I have investigated and I discovered this:
https://github.com/nodejs/readable-stream/blob/v3.6.0/lib/_stream_readable.js#L163
Manually changing
'string_decoder/'
to'string_decoder'
fixed the issueI know now it is fixed in v4.+ but wondering if that was a typo or it's just a sintax that webpack picks up correctly by stripping suffix
/
or whatelse?@mcollina