Reproducible example to show that using next/dynamic
breaks when used with a src folder and babel.
When you use next/dynamic
with babel
and a src
folder, you will get a hydration mismatch when opening your page.
Leave out either the src
folder or babel
and everything will be ok. If you use them both, next/dynamic
will throw a hydration mismatch.
Steps to reproduce
yarn install
yarn dev
open http://localhost:3000