This is a Next.js project bootstrapped with create-next-app
with the default options.
It demonstrates this issue.
To see the problem, do yarn build
.
The git branch 'dynamic' tries a workaround using next/dynamic but this also fails client side with a similar error.