coapjs / node-coap

CoAP - Node.js style
MIT License
528 stars 154 forks source link

Buffer is not defined #377

Open CazuuNa opened 7 months ago

CazuuNa commented 7 months ago

vue.runtime.esm.js:1442 ReferenceError: Buffer is not defined at numberToBuffer (option_converter.ts:246) at registerFormat (option_converter.ts:107) at node_modules/coap/dist/lib/option_converter.js (option_converter.ts:166) at require2 (chunk-YBOLLQGG.js?v=c6a802d7:16) at node_modules/coap/dist/lib/helpers.js (helpers.ts:11) at __require2 (chunk-YBOLLQGG.js?v=c6a802d7:16) at node_modules/coap/dist/lib/incoming_message.js (incoming_message.ts:13) at require2 (chunk-YBOLLQGG.js?v=c6a802d7:16) at node_modules/coap/dist/lib/agent.js (agent.ts:14) at __require2 (chunk-YBOLLQGG.js?v=c6a802d7:16)

JKRhb commented 7 months ago

Hi @CazuuNa, thank you for your report, can you provide a minimal example that allows for reproducing the issue?

Apollon77 commented 7 months ago

Please also @CazuuNa leas eprovide information about the environment you run it in . Buffer is a common JavaScript class but there could be platforms where it is not available