https://github.com/lukasbombach/next-dynamic-src-folder-babel-bug
https://github.com/lukasbombach/next-dynamic-src-folder-babel-bug
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lukasbombach/next-dynamic-src-folder-babel-bug
- Owner: LukasBombach
- Created: 2024-04-18T10:39:03.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-18T15:27:33.000Z (about 1 year ago)
- Last Synced: 2025-02-24T02:40:21.284Z (3 months ago)
- Language: TypeScript
- Size: 401 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```