Next.js Discord

Discord Forum

Correctly use next-intl with Turbopack?

Answered
Fire ant posted this in #help-forum
Open in Discord
Fire antOP
Im using next-intl and turbopack, My next config.ts looks like
import createNextIntlPlugin from "next-intl/plugin";
import type { NextConfig } from "next";

const withNextIntl = createNextIntlPlugin();

const nextConfig: NextConfig = {
  images: {
    remotePatterns: [
      {
        protocol: "http",
        hostname: "localhost",
        port: "5003",
        pathname: "/**",
      },
    ],
  },
};

export default withNextIntl(nextConfig);

and im using
next dev --port=4444 --turbo

and also i try
next dev --port=4444 --turbopack

It shows on terminal
▲ Next.js 15.4.0-canary.77 (Turbopack)
   - Local:        http://localhost:4444
   - Network:      http://192.168.0.104:4444

But when compiled it still shows 'Try turbopack' and ask to use the --turbopack

I try both but still same

Also it says i need to use config.turbopack?

Whats wrong with this?
Answered by Asian black bear
There is no error. The warning is just a false positive that will be fixed in an upcoming release of next-intl.
View full answer

4 Replies

Fire antOP
Using latest canary
Asian black bear
There is no error. The warning is just a false positive that will be fixed in an upcoming release of next-intl.
Answer
@Asian black bear There is no error. The warning is just a false positive that will be fixed in an upcoming release of next-intl.
Fire antOP
So its valid to use
next dev --port=4444 --turbopack
and ignore the config.turbopack warning?
Asian black bear
Correct.