mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[compiler] Improve display of errors on multi-line expressions (#34963)
When a longer function or expression is identified as the source of an
error, we currently print the entire expression in our error message.
This is because we delegate to a Babel helper to print codeframes. Here,
we add some checking and abbreviate the result if it spans too many
lines.
DiffTrain build for [408b38ef73](https://github.com/facebook/react/commit/408b38ef7304faf022d2a37110c57efce12c6bad)
This commit is contained in:
@@ -17654,6 +17654,10 @@ function hasOwnProperty$1(obj, key) {
|
||||
return Object.prototype.hasOwnProperty.call(obj, key);
|
||||
}
|
||||
|
||||
const CODEFRAME_LINES_ABOVE = 2;
|
||||
const CODEFRAME_LINES_BELOW = 3;
|
||||
const CODEFRAME_MAX_LINES = 10;
|
||||
const CODEFRAME_ABBREVIATED_SOURCE_LINES = 5;
|
||||
var ErrorSeverity;
|
||||
(function (ErrorSeverity) {
|
||||
ErrorSeverity["Error"] = "Error";
|
||||
@@ -17970,7 +17974,7 @@ class CompilerError extends Error {
|
||||
}
|
||||
}
|
||||
function printCodeFrame(source, loc, message) {
|
||||
return libExports.codeFrameColumns(source, {
|
||||
const printed = libExports.codeFrameColumns(source, {
|
||||
start: {
|
||||
line: loc.start.line,
|
||||
column: loc.start.column + 1,
|
||||
@@ -17981,7 +17985,19 @@ function printCodeFrame(source, loc, message) {
|
||||
},
|
||||
}, {
|
||||
message,
|
||||
linesAbove: CODEFRAME_LINES_ABOVE,
|
||||
linesBelow: CODEFRAME_LINES_BELOW,
|
||||
});
|
||||
const lines = printed.split(/\r?\n/);
|
||||
if (loc.end.line - loc.start.line < CODEFRAME_MAX_LINES) {
|
||||
return printed;
|
||||
}
|
||||
const pipeIndex = lines[0].indexOf('|');
|
||||
return [
|
||||
...lines.slice(0, CODEFRAME_LINES_ABOVE + CODEFRAME_ABBREVIATED_SOURCE_LINES),
|
||||
' '.repeat(pipeIndex) + '…',
|
||||
...lines.slice(-(CODEFRAME_LINES_BELOW + CODEFRAME_ABBREVIATED_SOURCE_LINES)),
|
||||
].join('\n');
|
||||
}
|
||||
function printErrorSummary(category, message) {
|
||||
let heading;
|
||||
|
||||
@@ -1 +1 @@
|
||||
09056abde76c464f4632f322a0ac30cd3984cee6
|
||||
408b38ef7304faf022d2a37110c57efce12c6bad
|
||||
|
||||
@@ -1 +1 @@
|
||||
09056abde76c464f4632f322a0ac30cd3984cee6
|
||||
408b38ef7304faf022d2a37110c57efce12c6bad
|
||||
|
||||
@@ -1499,7 +1499,7 @@ __DEV__ &&
|
||||
exports.useTransition = function () {
|
||||
return resolveDispatcher().useTransition();
|
||||
};
|
||||
exports.version = "19.3.0-www-classic-09056abd-20251023";
|
||||
exports.version = "19.3.0-www-classic-408b38ef-20251023";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -1499,7 +1499,7 @@ __DEV__ &&
|
||||
exports.useTransition = function () {
|
||||
return resolveDispatcher().useTransition();
|
||||
};
|
||||
exports.version = "19.3.0-www-modern-09056abd-20251023";
|
||||
exports.version = "19.3.0-www-modern-408b38ef-20251023";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -606,4 +606,4 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.3.0-www-classic-09056abd-20251023";
|
||||
exports.version = "19.3.0-www-classic-408b38ef-20251023";
|
||||
|
||||
@@ -606,4 +606,4 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.3.0-www-modern-09056abd-20251023";
|
||||
exports.version = "19.3.0-www-modern-408b38ef-20251023";
|
||||
|
||||
@@ -610,7 +610,7 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.3.0-www-classic-09056abd-20251023";
|
||||
exports.version = "19.3.0-www-classic-408b38ef-20251023";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -610,7 +610,7 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.3.0-www-modern-09056abd-20251023";
|
||||
exports.version = "19.3.0-www-modern-408b38ef-20251023";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -20371,10 +20371,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.3.0-www-classic-09056abd-20251023",
|
||||
version: "19.3.0-www-classic-408b38ef-20251023",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-www-classic-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-www-classic-408b38ef-20251023"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -20409,7 +20409,7 @@ __DEV__ &&
|
||||
exports.Shape = Shape;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.3.0-www-classic-09056abd-20251023";
|
||||
exports.version = "19.3.0-www-classic-408b38ef-20251023";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -20142,10 +20142,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.3.0-www-modern-09056abd-20251023",
|
||||
version: "19.3.0-www-modern-408b38ef-20251023",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-www-modern-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-www-modern-408b38ef-20251023"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -20180,7 +20180,7 @@ __DEV__ &&
|
||||
exports.Shape = Shape;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.3.0-www-modern-09056abd-20251023";
|
||||
exports.version = "19.3.0-www-modern-408b38ef-20251023";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -11442,10 +11442,10 @@ var slice = Array.prototype.slice,
|
||||
})(React.Component);
|
||||
var internals$jscomp$inline_1647 = {
|
||||
bundleType: 0,
|
||||
version: "19.3.0-www-classic-09056abd-20251023",
|
||||
version: "19.3.0-www-classic-408b38ef-20251023",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-www-classic-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-www-classic-408b38ef-20251023"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1648 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -11471,4 +11471,4 @@ exports.RadialGradient = RadialGradient;
|
||||
exports.Shape = TYPES.SHAPE;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.3.0-www-classic-09056abd-20251023";
|
||||
exports.version = "19.3.0-www-classic-408b38ef-20251023";
|
||||
|
||||
@@ -11154,10 +11154,10 @@ var slice = Array.prototype.slice,
|
||||
})(React.Component);
|
||||
var internals$jscomp$inline_1620 = {
|
||||
bundleType: 0,
|
||||
version: "19.3.0-www-modern-09056abd-20251023",
|
||||
version: "19.3.0-www-modern-408b38ef-20251023",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-www-modern-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-www-modern-408b38ef-20251023"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1621 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -11183,4 +11183,4 @@ exports.RadialGradient = RadialGradient;
|
||||
exports.Shape = TYPES.SHAPE;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.3.0-www-modern-09056abd-20251023";
|
||||
exports.version = "19.3.0-www-modern-408b38ef-20251023";
|
||||
|
||||
@@ -32933,11 +32933,11 @@ __DEV__ &&
|
||||
return_targetInst = null;
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.3.0-www-classic-09056abd-20251023" !== isomorphicReactPackageVersion)
|
||||
if ("19.3.0-www-classic-408b38ef-20251023" !== isomorphicReactPackageVersion)
|
||||
throw Error(
|
||||
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
||||
(isomorphicReactPackageVersion +
|
||||
"\n - react-dom: 19.3.0-www-classic-09056abd-20251023\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.3.0-www-classic-408b38ef-20251023\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -32980,10 +32980,10 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.3.0-www-classic-09056abd-20251023",
|
||||
version: "19.3.0-www-classic-408b38ef-20251023",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-www-classic-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-www-classic-408b38ef-20251023"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -33596,7 +33596,7 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.3.0-www-classic-09056abd-20251023";
|
||||
exports.version = "19.3.0-www-classic-408b38ef-20251023";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -32718,11 +32718,11 @@ __DEV__ &&
|
||||
return_targetInst = null;
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.3.0-www-modern-09056abd-20251023" !== isomorphicReactPackageVersion)
|
||||
if ("19.3.0-www-modern-408b38ef-20251023" !== isomorphicReactPackageVersion)
|
||||
throw Error(
|
||||
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
||||
(isomorphicReactPackageVersion +
|
||||
"\n - react-dom: 19.3.0-www-modern-09056abd-20251023\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.3.0-www-modern-408b38ef-20251023\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -32765,10 +32765,10 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.3.0-www-modern-09056abd-20251023",
|
||||
version: "19.3.0-www-modern-408b38ef-20251023",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-www-modern-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-www-modern-408b38ef-20251023"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -33381,7 +33381,7 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.3.0-www-modern-09056abd-20251023";
|
||||
exports.version = "19.3.0-www-modern-408b38ef-20251023";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -19975,14 +19975,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2129 = React.version;
|
||||
if (
|
||||
"19.3.0-www-classic-09056abd-20251023" !==
|
||||
"19.3.0-www-classic-408b38ef-20251023" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2129
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2129,
|
||||
"19.3.0-www-classic-09056abd-20251023"
|
||||
"19.3.0-www-classic-408b38ef-20251023"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -20000,10 +20000,10 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2761 = {
|
||||
bundleType: 0,
|
||||
version: "19.3.0-www-classic-09056abd-20251023",
|
||||
version: "19.3.0-www-classic-408b38ef-20251023",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-www-classic-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-www-classic-408b38ef-20251023"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2762 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -20432,4 +20432,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.3.0-www-classic-09056abd-20251023";
|
||||
exports.version = "19.3.0-www-classic-408b38ef-20251023";
|
||||
|
||||
@@ -19704,14 +19704,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2119 = React.version;
|
||||
if (
|
||||
"19.3.0-www-modern-09056abd-20251023" !==
|
||||
"19.3.0-www-modern-408b38ef-20251023" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2119
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2119,
|
||||
"19.3.0-www-modern-09056abd-20251023"
|
||||
"19.3.0-www-modern-408b38ef-20251023"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -19729,10 +19729,10 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2743 = {
|
||||
bundleType: 0,
|
||||
version: "19.3.0-www-modern-09056abd-20251023",
|
||||
version: "19.3.0-www-modern-408b38ef-20251023",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-www-modern-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-www-modern-408b38ef-20251023"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2744 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -20161,4 +20161,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.3.0-www-modern-09056abd-20251023";
|
||||
exports.version = "19.3.0-www-modern-408b38ef-20251023";
|
||||
|
||||
@@ -22230,14 +22230,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2439 = React.version;
|
||||
if (
|
||||
"19.3.0-www-classic-09056abd-20251023" !==
|
||||
"19.3.0-www-classic-408b38ef-20251023" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2439
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2439,
|
||||
"19.3.0-www-classic-09056abd-20251023"
|
||||
"19.3.0-www-classic-408b38ef-20251023"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -22255,10 +22255,10 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2441 = {
|
||||
bundleType: 0,
|
||||
version: "19.3.0-www-classic-09056abd-20251023",
|
||||
version: "19.3.0-www-classic-408b38ef-20251023",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-www-classic-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-www-classic-408b38ef-20251023"
|
||||
};
|
||||
enableSchedulingProfiler &&
|
||||
((internals$jscomp$inline_2441.getLaneLabelMap = getLaneLabelMap),
|
||||
@@ -22691,7 +22691,7 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.3.0-www-classic-09056abd-20251023";
|
||||
exports.version = "19.3.0-www-classic-408b38ef-20251023";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -22024,14 +22024,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2429 = React.version;
|
||||
if (
|
||||
"19.3.0-www-modern-09056abd-20251023" !==
|
||||
"19.3.0-www-modern-408b38ef-20251023" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2429
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2429,
|
||||
"19.3.0-www-modern-09056abd-20251023"
|
||||
"19.3.0-www-modern-408b38ef-20251023"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -22049,10 +22049,10 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2431 = {
|
||||
bundleType: 0,
|
||||
version: "19.3.0-www-modern-09056abd-20251023",
|
||||
version: "19.3.0-www-modern-408b38ef-20251023",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-www-modern-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-www-modern-408b38ef-20251023"
|
||||
};
|
||||
enableSchedulingProfiler &&
|
||||
((internals$jscomp$inline_2431.getLaneLabelMap = getLaneLabelMap),
|
||||
@@ -22485,7 +22485,7 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.3.0-www-modern-09056abd-20251023";
|
||||
exports.version = "19.3.0-www-modern-408b38ef-20251023";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -10305,5 +10305,5 @@ __DEV__ &&
|
||||
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
|
||||
);
|
||||
};
|
||||
exports.version = "19.3.0-www-classic-09056abd-20251023";
|
||||
exports.version = "19.3.0-www-classic-408b38ef-20251023";
|
||||
})();
|
||||
|
||||
@@ -10234,5 +10234,5 @@ __DEV__ &&
|
||||
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
|
||||
);
|
||||
};
|
||||
exports.version = "19.3.0-www-modern-09056abd-20251023";
|
||||
exports.version = "19.3.0-www-modern-408b38ef-20251023";
|
||||
})();
|
||||
|
||||
@@ -6996,4 +6996,4 @@ exports.renderToString = function (children, options) {
|
||||
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
|
||||
);
|
||||
};
|
||||
exports.version = "19.3.0-www-classic-09056abd-20251023";
|
||||
exports.version = "19.3.0-www-classic-408b38ef-20251023";
|
||||
|
||||
@@ -6929,4 +6929,4 @@ exports.renderToString = function (children, options) {
|
||||
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
|
||||
);
|
||||
};
|
||||
exports.version = "19.3.0-www-modern-09056abd-20251023";
|
||||
exports.version = "19.3.0-www-modern-408b38ef-20251023";
|
||||
|
||||
@@ -33254,11 +33254,11 @@ __DEV__ &&
|
||||
return_targetInst = null;
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.3.0-www-classic-09056abd-20251023" !== isomorphicReactPackageVersion)
|
||||
if ("19.3.0-www-classic-408b38ef-20251023" !== isomorphicReactPackageVersion)
|
||||
throw Error(
|
||||
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
||||
(isomorphicReactPackageVersion +
|
||||
"\n - react-dom: 19.3.0-www-classic-09056abd-20251023\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.3.0-www-classic-408b38ef-20251023\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -33301,10 +33301,10 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.3.0-www-classic-09056abd-20251023",
|
||||
version: "19.3.0-www-classic-408b38ef-20251023",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-www-classic-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-www-classic-408b38ef-20251023"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -34083,5 +34083,5 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.3.0-www-classic-09056abd-20251023";
|
||||
exports.version = "19.3.0-www-classic-408b38ef-20251023";
|
||||
})();
|
||||
|
||||
@@ -33039,11 +33039,11 @@ __DEV__ &&
|
||||
return_targetInst = null;
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.3.0-www-modern-09056abd-20251023" !== isomorphicReactPackageVersion)
|
||||
if ("19.3.0-www-modern-408b38ef-20251023" !== isomorphicReactPackageVersion)
|
||||
throw Error(
|
||||
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
||||
(isomorphicReactPackageVersion +
|
||||
"\n - react-dom: 19.3.0-www-modern-09056abd-20251023\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.3.0-www-modern-408b38ef-20251023\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -33086,10 +33086,10 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.3.0-www-modern-09056abd-20251023",
|
||||
version: "19.3.0-www-modern-408b38ef-20251023",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-www-modern-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-www-modern-408b38ef-20251023"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -33868,5 +33868,5 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.3.0-www-modern-09056abd-20251023";
|
||||
exports.version = "19.3.0-www-modern-408b38ef-20251023";
|
||||
})();
|
||||
|
||||
@@ -20291,14 +20291,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2158 = React.version;
|
||||
if (
|
||||
"19.3.0-www-classic-09056abd-20251023" !==
|
||||
"19.3.0-www-classic-408b38ef-20251023" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2158
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2158,
|
||||
"19.3.0-www-classic-09056abd-20251023"
|
||||
"19.3.0-www-classic-408b38ef-20251023"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -20316,10 +20316,10 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2795 = {
|
||||
bundleType: 0,
|
||||
version: "19.3.0-www-classic-09056abd-20251023",
|
||||
version: "19.3.0-www-classic-408b38ef-20251023",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-www-classic-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-www-classic-408b38ef-20251023"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2796 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -20899,4 +20899,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.3.0-www-classic-09056abd-20251023";
|
||||
exports.version = "19.3.0-www-classic-408b38ef-20251023";
|
||||
|
||||
@@ -20020,14 +20020,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2148 = React.version;
|
||||
if (
|
||||
"19.3.0-www-modern-09056abd-20251023" !==
|
||||
"19.3.0-www-modern-408b38ef-20251023" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2148
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2148,
|
||||
"19.3.0-www-modern-09056abd-20251023"
|
||||
"19.3.0-www-modern-408b38ef-20251023"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -20045,10 +20045,10 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2777 = {
|
||||
bundleType: 0,
|
||||
version: "19.3.0-www-modern-09056abd-20251023",
|
||||
version: "19.3.0-www-modern-408b38ef-20251023",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-www-modern-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-www-modern-408b38ef-20251023"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2778 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -20628,4 +20628,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.3.0-www-modern-09056abd-20251023";
|
||||
exports.version = "19.3.0-www-modern-408b38ef-20251023";
|
||||
|
||||
@@ -23031,7 +23031,7 @@ __DEV__ &&
|
||||
version: rendererVersion,
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-www-classic-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-www-classic-408b38ef-20251023"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -22811,7 +22811,7 @@ __DEV__ &&
|
||||
version: rendererVersion,
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-www-modern-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-www-modern-408b38ef-20251023"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -14253,7 +14253,7 @@ module.exports = function ($$$config) {
|
||||
version: rendererVersion,
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-www-classic-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-www-classic-408b38ef-20251023"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -13970,7 +13970,7 @@ module.exports = function ($$$config) {
|
||||
version: rendererVersion,
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-www-modern-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-www-modern-408b38ef-20251023"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -15710,10 +15710,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.3.0-www-classic-09056abd-20251023",
|
||||
version: "19.3.0-www-classic-408b38ef-20251023",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-www-classic-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-www-classic-408b38ef-20251023"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -15849,5 +15849,5 @@ __DEV__ &&
|
||||
exports.unstable_batchedUpdates = function (fn, a) {
|
||||
return fn(a);
|
||||
};
|
||||
exports.version = "19.3.0-www-classic-09056abd-20251023";
|
||||
exports.version = "19.3.0-www-classic-408b38ef-20251023";
|
||||
})();
|
||||
|
||||
@@ -15710,10 +15710,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.3.0-www-modern-09056abd-20251023",
|
||||
version: "19.3.0-www-modern-408b38ef-20251023",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.3.0-www-modern-09056abd-20251023"
|
||||
reconcilerVersion: "19.3.0-www-modern-408b38ef-20251023"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -15849,5 +15849,5 @@ __DEV__ &&
|
||||
exports.unstable_batchedUpdates = function (fn, a) {
|
||||
return fn(a);
|
||||
};
|
||||
exports.version = "19.3.0-www-modern-09056abd-20251023";
|
||||
exports.version = "19.3.0-www-modern-408b38ef-20251023";
|
||||
})();
|
||||
|
||||
@@ -1 +1 @@
|
||||
19.3.0-www-classic-09056abd-20251023
|
||||
19.3.0-www-classic-408b38ef-20251023
|
||||
@@ -1 +1 @@
|
||||
19.3.0-www-modern-09056abd-20251023
|
||||
19.3.0-www-modern-408b38ef-20251023
|
||||
Reference in New Issue
Block a user