Don't try building a %s module.
React's build tools are reading the `require("react")` and `react("%s")` inside the warning string and thinking they are actual requires.
Daniel Friesen committed
Jun 21, 2015 at 21:14 UTC
c8d606196d3791c91fcb69d66d8c4799e086e68a
1 file changed
+1
-1
src/shared/utils/deprecated.js
+1
-1
@@ -30,7 +30,7 @@ function deprecated(fnName, newModule, ctx, fn) {
30
var newFn = function() {
31
warning(
32
warned,
33
- '`require("react").%s` is deprecated. Please use `require("%s").%s` ' +
33
+ '`require' + '("react").%s` is deprecated. Please use `require' + '("%s").%s` ' +
34
'instead.',
35
fnName,
36
newModule,