You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In api-reference/next-config-js/turbo i used this config in my next.config.ts file: module.exports = { turbo: { rules: { '*.svg': { loaders: ['@svgr/webpack'], as: '*.js', }, }, }, }
But i recived errors that are mentioned in above field
Provide environment information
Operating System:
Platform: win32
Arch: x64
Version: Windows 11 Pro
Available memory (MB): 24408
Available CPU cores: 16
Binaries:
Node: 22.10.0
npm: N/A
Yarn: N/A
pnpm: N/A
Relevant Packages:
next: 15.0.2-canary.6 // There is a newer canary version (15.0.2-canary.7) available, please upgrade!
eslint-config-next: 15.0.0-rc.1
react: 19.0.0-rc-1631855f-20241023
react-dom: 19.0.0-rc-1631855f-20241023
typescript: 5.6.3
Next.js Config:
output: {
turbo: {
rules: {
"*.svg": {
loaders: ["@svgr/webpack"],
as: "*.js",
},
},
},
}
Which area(s) are affected? (Select all that apply)
Turbopack
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local)
Additional context
No response
The text was updated successfully, but these errors were encountered:
Thanks, the problem is fixed. Is this due to using Next 15.0.2-canary.6? In the stable version of Next, we can configure Turbopack outside of the experimental, correct?
The docs are just wrong, I ran into the same thing. They just didn't update the type def to match the documentation update. In the docs turbo was no longer experimental since V15.0.0
Link to the code that reproduces this issue
https://codesandbox.io/p/devbox/exciting-matsumoto-go8s7s
To Reproduce
`
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
turbo: {
rules: {
".svg": {
loaders: ["@svgr/webpack"],
as: ".js",
},
},
},
};
export default nextConfig;
`
`
yarn run v1.22.22
$ next dev --turbo
▲ Next.js 15.0.2-canary.6 (Turbopack)
✓ Starting...
⚠ Invalid next.config.ts options detected:
⚠ Unrecognized key(s) in object: 'turbo'
⚠ See more info here: https://nextjs.org/docs/messages/invalid-next-config
✓ Ready in 3.3s
`
Current vs. Expected behavior
In api-reference/next-config-js/turbo i used this config in my next.config.ts file:
module.exports = { turbo: { rules: { '*.svg': { loaders: ['@svgr/webpack'], as: '*.js', }, }, }, }
But i recived errors that are mentioned in above field
Provide environment information
Which area(s) are affected? (Select all that apply)
Turbopack
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: