$RefreshReg$ is not defined

This reproduces the issue reported in vercel/next.js#12753.

image

To run:

yarn dev