mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
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.
This commit is contained in:
@@ -30,7 +30,7 @@ function deprecated(fnName, newModule, ctx, fn) {
|
||||
var newFn = function() {
|
||||
warning(
|
||||
warned,
|
||||
'`require("react").%s` is deprecated. Please use `require("%s").%s` ' +
|
||||
'`require' + '("react").%s` is deprecated. Please use `require' + '("%s").%s` ' +
|
||||
'instead.',
|
||||
fnName,
|
||||
newModule,
|
||||
|
||||
Reference in New Issue
Block a user