Skip to content

Tubopack does not hot-reload dictionaries when they change #125

Open
@aymericzip

Description

@aymericzip

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)

✓ 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

✓ 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\""
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions