/
opt
/
canhelp
/
node_modules
/
next
/
dist
/
next-devtools
/
shared
/
/opt/canhelp/node_modules/next/dist/next-devtools/shared
mkdir
upload
Name
Size
Mode
Actions
console-error.d.ts
344
0644
edit
dl
rm
console-error.js
1606
0644
edit
dl
rm
console-error.js.map
1667
0644
edit
dl
rm
deepmerge.d.ts
66
0644
edit
dl
rm
deepmerge.js
1371
0644
edit
dl
rm
deepmerge.js.map
1664
0644
edit
dl
rm
devtools-config-schema.d.ts
175
0644
edit
dl
rm
devtools-config-schema.js
1419
0644
edit
dl
rm
devtools-config-schema.js.map
1763
0644
edit
dl
rm
forward-logs-shared.d.ts
1360
0644
edit
dl
rm
forward-logs-shared.js
2082
0644
edit
dl
rm
forward-logs-shared.js.map
3846
0644
edit
dl
rm
hydration-error.d.ts
100
0644
edit
dl
rm
hydration-error.js
449
0644
edit
dl
rm
hydration-error.js.map
67
0644
edit
dl
rm
react-18-hydration-error.d.ts
311
0644
edit
dl
rm
react-18-hydration-error.js
3016
0644
edit
dl
rm
react-18-hydration-error.js.map
3440
0644
edit
dl
rm
react-19-hydration-error.d.ts
503
0644
edit
dl
rm
react-19-hydration-error.js
3973
0644
edit
dl
rm
react-19-hydration-error.js.map
4710
0644
edit
dl
rm
stack-frame.d.ts
825
0644
edit
dl
rm
stack-frame.js
5738
0644
edit
dl
rm
stack-frame.js.map
8407
0644
edit
dl
rm
types.d.ts
74
0644
edit
dl
rm
types.js
439
0644
edit
dl
rm
types.js.map
67
0644
edit
dl
rm
version-staleness.d.ts
229
0644
edit
dl
rm
version-staleness.js
2190
0644
edit
dl
rm
version-staleness.js.map
2319
0644
edit
dl
rm
webpack-module-path.d.ts
418
0644
edit
dl
rm
webpack-module-path.js
1390
0644
edit
dl
rm
webpack-module-path.js.map
1419
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/next/dist/next-devtools/shared/react-19-hydration-error.js
(3973B)
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { NEXTJS_HYDRATION_ERROR_LINK: null, REACT_HYDRATION_ERROR_LINK: null, getHydrationErrorStackInfo: null, isErrorMessageWithComponentStackDiff: null, isHydrationError: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { NEXTJS_HYDRATION_ERROR_LINK: function() { return NEXTJS_HYDRATION_ERROR_LINK; }, REACT_HYDRATION_ERROR_LINK: function() { return REACT_HYDRATION_ERROR_LINK; }, getHydrationErrorStackInfo: function() { return getHydrationErrorStackInfo; }, isErrorMessageWithComponentStackDiff: function() { return isErrorMessageWithComponentStackDiff; }, isHydrationError: function() { return isHydrationError; } }); const REACT_HYDRATION_ERROR_LINK = 'https://react.dev/link/hydration-mismatch'; const NEXTJS_HYDRATION_ERROR_LINK = 'https://nextjs.org/docs/messages/react-hydration-error'; /** * Only React 19+ contains component stack diff in the error message */ const errorMessagesWithComponentStackDiff = [ /^In HTML, (.+?) cannot be a child of <(.+?)>\.(.*)\nThis will cause a hydration error\.(.*)/, /^In HTML, (.+?) cannot be a descendant of <(.+?)>\.\nThis will cause a hydration error\.(.*)/, /^In HTML, text nodes cannot be a child of <(.+?)>\.\nThis will cause a hydration error\./, /^In HTML, whitespace text nodes cannot be a child of <(.+?)>\. Make sure you don't have any extra whitespace between tags on each line of your source code\.\nThis will cause a hydration error\./ ]; function isHydrationError(error) { return isErrorMessageWithComponentStackDiff(error.message) || /Hydration failed because the server rendered (text|HTML) didn't match the client\./.test(error.message) || /A tree hydrated but some attributes of the server rendered HTML didn't match the client properties./.test(error.message); } function isErrorMessageWithComponentStackDiff(msg) { return errorMessagesWithComponentStackDiff.some((regex)=>regex.test(msg)); } function getHydrationErrorStackInfo(error) { const errorMessage = error.message; if (isErrorMessageWithComponentStackDiff(errorMessage)) { const [message, diffLog = ''] = errorMessage.split('\n\n'); const diff = diffLog.trim(); return { message: diff === '' ? errorMessage.trim() : message.trim(), diff, notes: null }; } const [message, maybeComponentStackDiff] = errorMessage.split("" + REACT_HYDRATION_ERROR_LINK); const trimmedMessage = message.trim(); // React built-in hydration diff starts with a newline if (maybeComponentStackDiff !== undefined && maybeComponentStackDiff.length > 1) { const diffs = []; maybeComponentStackDiff.split('\n').forEach((line)=>{ if (line.trim() === '') return; if (!line.trim().startsWith('at ')) { diffs.push(line); } }); const [displayedMessage, ...notes] = trimmedMessage.split('\n\n'); return { message: displayedMessage, diff: diffs.join('\n'), notes: notes.join('\n\n') || null }; } else { const [displayedMessage, ...notes] = trimmedMessage.split('\n\n'); return { message: displayedMessage, diff: null, notes: notes.join('\n\n') }; } } if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') { Object.defineProperty(exports.default, '__esModule', { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=react-19-hydration-error.js.map
Save
cmd:
run