LukasBombach / next-dynamic-src-folder-babel-bug

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

next/dynamic + src folder + babel

Reproducible example to show that using next/dynamic breaks when used with a src folder and babel.

Description

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

About


Languages

Language:TypeScript 100.0%