Description
hi @nikolaipigarev,
Are you still experiencing the issue?
So the bug isn't totally gone. I can use turbopack fine! BUT only if i once run it without it. Cause with turbopack for somereason it doesnt update the dictionaries.
$ next dev --turbopack
▲ Next.js 15.3.1 (Turbopack)
- Local: http://localhost:3000
- Network: http://192.168.50.238:3000
- Environments: .env.local, .env
✓ Starting...
✓ Compiled middleware in 176ms
✓ Ready in 2.2s
○ Compiling /[locale] ...
✓ Compiled /[locale] in 2.6s
Render: HomePageClient$ next dev
▲ Next.js 15.3.1
- Local: http://localhost:3000
- Network: http://192.168.50.238:3000
- Environments: .env.local, .env
✓ Starting...
[intlayer] Dictionaries built
✓ Ready in 4.6s
Originally posted by @nikolaipigarev in #109
On Next.js, Intlayer uses a Webpack plugin to watch for changes in content declaration files and hot-reloads the dictionaries accordingly. TurboPack does not yet provide callbacks such as onServerStart
.
As a quick fix, you can use :
// package.json
{
"scripts":{
"dev": "concurrently \"next dev --turbopack\" \"npx intlayer build --watch\""
}
}