We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a53f29a commit eb87c72Copy full SHA for eb87c72
react_ujs/src/getConstructor/fromRequireContextWithGlobalFallback.js
@@ -11,9 +11,14 @@ module.exports = function(reqctx) {
11
try {
12
// `require` will raise an error if this className isn't found:
13
component = fromCtx(className)
14
- } catch (err) {
+ } catch (firstErr) {
15
// fallback to global:
16
- component = fromGlobal(className)
+ try {
17
+ component = fromGlobal(className)
18
+ } catch (secondErr) {
19
+ console.error(firstErr)
20
+ console.error(secondErr)
21
+ }
22
}
23
return component
24
0 commit comments