Skip to content

Getting Material UI from CDN #309

Answered by rmorshea
jamieRowen asked this question in Question
Discussion options

You must be logged in to vote

I'm not a JS wizard though, so I could be wrong about this, but I'm pretty sure this is because Material UI is using bare imports. If you check out some of the code from the CDN you'll find the following snippet:

require("react")

The problem here is that RequireJS is going to look for React at ./react when IDOM is actually hosting it at ./react.js.

Thankfully there looks to be a solution to this problem of bare imports on the horizon in the form of Import Maps.

Until then though, you'll need need to install it locally. Be sure to post here again if you have installation problems.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jamieRowen
Comment options

@rmorshea
Comment options

Answer selected by rmorshea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants