Open kyeotic opened 1 year ago
Hello! Sure, because react-xmasonry is meant to be used in the browser, within React framework.
What's the use case of using it in deno?
Also: see what's exported.
The use case is Server side rendering in remix. Even an empty initial pass would be fine, but it fails to load.
Also: see what's exported.
react-xmasonry exports UMD module. I'm not a deno person (yet) so if you or anyone else have an idea why typical UMD is not imported into deno, I'd be happy to assist.
I'm still learning it myself. Usually UMD's, especially loaded through ESM transpilers like https://esm.sh, just work. I'm not sure why this one isn't working 🤷
When I try loading in deno with
import { XMasonry, XBlock } from 'react-xmasonry'
I getThis happens with all of these options (defined in import_map)
npm:react-xmasonry@3.0.6
https://esm.sh/react-xmasonry@3.0.6
https://esm.sh/react-xmasonry@3.0.6/dist/index.js
https://unpkg.com/react-xmasonry/dist/index.js