-
Notifications
You must be signed in to change notification settings - Fork 29.2k
Open
Labels
good first issueEasy to fix issues, good for newcomersEasy to fix issues, good for newcomers
Description
What version of Next.js are you using?
10.1.3
What version of Node.js are you using?
v14.16.1
What browser are you using?
Safari
What operating system are you using?
macOS
How are you deploying your application?
Vercel
Describe the Bug
Debugging a starter Next.js installation shows several warnings. Even if they are benign, they make it hard to notice other warnings that may appear as the project is developed.
VS Code shows the following on the Debug Console:
Could not read source map for file:///Users/brey/Code/Sandbox/nextjs-test/node_modules/@next/react-refresh-utils/ReactRefreshWebpackPlugin.js: ENOENT: no such file or directory, open '/Users/brey/Code/Sandbox/nextjs-test/node_modules/@next/react-refresh-utils/ReactRefreshWebpackPlugin.js.map'
Could not read source map for file:///Users/brey/Code/Sandbox/nextjs-test/node_modules/@next/react-refresh-utils/loader.js: ENOENT: no such file or directory, open '/Users/brey/Code/Sandbox/nextjs-test/node_modules/@next/react-refresh-utils/loader.js.map'
Could not read source map for file:///Users/brey/Code/Sandbox/nextjs-test/node_modules/@next/react-refresh-utils/internal/ReactRefreshModule.runtime.js: ENOENT: no such file or directory, open '/Users/brey/Code/Sandbox/nextjs-test/node_modules/@next/react-refresh-utils/internal/ReactRefreshModule.runtime.js.map'
Expected Behavior
No warnings.
To Reproduce
npx create-next-app nextjs-test --use-npm
- Add to
packages.json
inscripts
:"debug": "NODE_OPTIONS='--inspect' next dev",
. - Create
.vscode/launch.json
with:
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Launch Program",
"skipFiles": ["<node_internals>/**"],
"port": 9229,
"cwd": "${workspaceFolder}/Server"
}
]
}
npm run debug
- Run this command in VS Code:
Debug: Start Debugging
.
luisorbaiceta, shivamalk-23 and natsuk4ze
Metadata
Metadata
Assignees
Labels
good first issueEasy to fix issues, good for newcomersEasy to fix issues, good for newcomers