Skip to content
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

React UMD bundle fails to execute #46

Open
vadimavdeev opened this issue Dec 18, 2017 · 1 comment
Open

React UMD bundle fails to execute #46

vadimavdeev opened this issue Dec 18, 2017 · 1 comment

Comments

@vadimavdeev
Copy link

I tried to use the UMD React build from unpkg, but it failed with Uncaught TypeError: Cannot read property 'Component' of undefined.
I think it's because it expects to find React on the global object under name react but it's actually React (with a capital R).
You can reproduce the issue by opening an html file like this in the browser:

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
	<script src="https://unpkg.com/unistore/full/react.umd.js"></script>
</head>
<body>
</body>
</html>
@developit
Copy link
Owner

Ah interesting. We'll need to add an option to Microbundle to allow configuring that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants