vercel/next.js · error
[Fast Refresh] performing full reload Fast Refresh will per
Error message
[Fast Refresh] performing full reload Fast Refresh will perform a full reload when you edit a file that's imported by modules outside of the React rendering tree. You might have a file which exports a React component but also exports a value that is imported by a non-React component file. Consider migrating the non-React component export to a separate file and importing it into both files. It is also possible the parent component of the component you edited is a class component, which disables Fast Refresh. Fast Refresh requires at least one parent function component in your React tree.
What it means
Error "[Fast Refresh] performing full reload Fast Refresh will perform a full reload when you edit a file that's imported by modules outside of the React rendering tree. You might have a file which exports a React component but also exports a value that is imported by a non-React component file. Consider migrating the non-React component export to a separate file and importing it into both files. It is also possible the parent component of the component you edited is a class component, which disables Fast Refresh. Fast Refresh requires at least one parent function component in your React tree." thrown in vercel/next.js.
Source
Thrown at packages/next/src/client/dev/hot-reloader/app/hot-reloader-app.tsx:162
window.location.reload()
}
// Attempt to update code on the fly, fall back to a hard reload.
function tryApplyUpdatesWebpack(sendMessage: (message: string) => void) {
if (!isUpdateAvailable() || !canApplyUpdates()) {
resolvePendingHotUpdateWebpack()
dispatcher.onBuildOk()
reportHmrLatency(sendMessage, [], webpackStartMsSinceEpoch!, Date.now())
return
}
function handleApplyUpdates(
err: any,
updatedModules: (string | number)[] | null
) {
if (err || RuntimeErrorHandler.hadRuntimeError || updatedModules == null) {
if (err) {
console.warn(REACT_REFRESH_FULL_RELOAD)
} else if (RuntimeErrorHandler.hadRuntimeError) {
console.warn(REACT_REFRESH_FULL_RELOAD_FROM_ERROR)
}
performFullReload(err, sendMessage)
return
}
dispatcher.onBuildOk()
if (isUpdateAvailable()) {
// While we were updating, there was a new update! Do it again.
tryApplyUpdatesWebpack(sendMessage)
return
}
dispatcher.onRefresh()
resolvePendingHotUpdateWebpack()
reportHmrLatency(View on GitHub (pinned to 258b1c1bc0)
Solutions
- Move non-component exports out of files that export React components, into a separate module imported by both.
- Convert parent class components to function components to re-enable Fast Refresh.
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at packages/next/src/client/dev/hot-reloader/app/hot-reloader-app.tsx:162 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of vercel/next.js@258b1c1bc0 (2026-08-19).
Data as JSON: /api/errors/713fd2269c38bfad.
Report an issue: GitHub.