-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to load in deno #29
Comments
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. |
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:[email protected]
https://esm.sh/[email protected]
https://esm.sh/[email protected]/dist/index.js
https://unpkg.com/react-xmasonry/dist/index.js
The text was updated successfully, but these errors were encountered: