-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
[BUG] create-react-class does not work in AMD environment #9749
Comments
Although below solution is not tried at the exactly same environment as jsfiddle posted, just leave it as a reference. I can fix the error by adding --- node_modules/create-react-class/create-react-class.js 2017-05-10 07:57:00.000000000 +0800
+++ create-react-class.js 2017-05-23 14:44:30.456446125 +0800
@@ -757,10 +757,11 @@
*/
'use strict';
var factory = require('./factory');
+var React = require('react');
// Hack to grab NoopUpdateQueue from isomorphic React
var ReactNoopUpdateQueue = new React.Component().updater;
|
Ahhh, continue at #9689 then.
Close.
2017年5月23日 21:18,"jochenberger" <notifications@github.com>寫道:
#9689 <#9689>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9749 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADuAo6BvmhJbhW4SY-wnK6ZVbskl-qYfks5r8tyYgaJpZM4NjOXL>
.
|
This should be fixed with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you want to request a feature or report a bug?
Report a bug
What is the current behavior?
Unable to require such module. This bug seems similar to #8301.
React
uses without properrequire
calls .If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/84v837e9/).
Here is a jsfiddle.
https://jsfiddle.net/w5xjbgcy/12/
Errors from jsfiddle
What is the expected behavior?
Able to load create-react-class without problem
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
The text was updated successfully, but these errors were encountered: