Open givo opened 2 months ago
https://github.com/vercel/next-learn/tree/main/dashboard/final-example
{ "jsc": { "target": "es2021", "parser": { "syntax": "typescript", "tsx": true }, "transform": { "react": { "runtime": "automatic", "development": true, "refresh": true } } }, "sourceMaps": true, "minify": false }
/** @type {import('next').NextConfig} */ const nextConfig = { webpack(config, { dev }) { config.mode = 'development'; config.devtool = 'source-map'; // nextjs automatically converts this to eval-source-map return config; }, reactStrictMode: true, swcMinify: false, productionBrowserSourceMaps: true, }; module.exports = nextConfig;
npm run dev
_debugInfo
React: 18.3.1 Nextjs: 14.2.4 Node: 20.13.1 Operating system: Mac 14.2.1
Developer Experience, SWC
next dev (local)
I'm a little confused:
Link to the code that reproduces this issue
https://github.com/vercel/next-learn/tree/main/dashboard/final-example
To Reproduce
npm run dev
Current vs. Expected behavior
Expected:
_debugInfo
with file name and line numberActual
_debugInfo
is nullProvide environment information
Which area(s) are affected? (Select all that apply)
Developer Experience, SWC
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context