To reproduce this issue, run: yarn dev OR yarn build ...However all of this worked in previous (pre Next 10.2.1) versions of Next which is verifable by changing this packages next version.