$RefreshReg$ is not defined This reproduces the issue reported in vercel/next.js#12753. To run: yarn dev