/opt/canhelp/node_modules/next/dist/next-devtools/shared
NameSizeModeActions
console-error.d.ts3440644editdlrm
console-error.js16060644editdlrm
console-error.js.map16670644editdlrm
deepmerge.d.ts660644editdlrm
deepmerge.js13710644editdlrm
deepmerge.js.map16640644editdlrm
devtools-config-schema.d.ts1750644editdlrm
devtools-config-schema.js14190644editdlrm
devtools-config-schema.js.map17630644editdlrm
forward-logs-shared.d.ts13600644editdlrm
forward-logs-shared.js20820644editdlrm
forward-logs-shared.js.map38460644editdlrm
hydration-error.d.ts1000644editdlrm
hydration-error.js4490644editdlrm
hydration-error.js.map670644editdlrm
react-18-hydration-error.d.ts3110644editdlrm
react-18-hydration-error.js30160644editdlrm
react-18-hydration-error.js.map34400644editdlrm
react-19-hydration-error.d.ts5030644editdlrm
react-19-hydration-error.js39730644editdlrm
react-19-hydration-error.js.map47100644editdlrm
stack-frame.d.ts8250644editdlrm
stack-frame.js57380644editdlrm
stack-frame.js.map84070644editdlrm
types.d.ts740644editdlrm
types.js4390644editdlrm
types.js.map670644editdlrm
version-staleness.d.ts2290644editdlrm
version-staleness.js21900644editdlrm
version-staleness.js.map23190644editdlrm
webpack-module-path.d.ts4180644editdlrm
webpack-module-path.js13900644editdlrm
webpack-module-path.js.map14190644editdlrm
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