An open API service indexing awesome lists of open source software.

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

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
```

![](./error.png)