cose-js icon indicating copy to clipboard operation
cose-js copied to clipboard

Browser support

Open santiagocezar opened this issue 2 years ago • 0 comments

I'm trying to use this library for a web app, but I'm unable to do so because of the usage of NodeJS Buffer, which is not available in the browser.

Also tried hacks like

import { Buffer } from 'buffer';
globalThis.Buffer = Buffer

without luck

Ok it did work now but apparenly the nofilter package (which is a dependency of cbor) doesn't play nicely with the polyfill.

santiagocezar avatar Feb 16 '23 17:02 santiagocezar