Closed
Description
Verify canary release
- I verified that the issue exists in Next.js canary release
Provide environment information
$ npx --no-install next info
Operating System:
Platform: darwin
Arch: x64
Version: Darwin Kernel Version 20.6.0: Wed Jan 12 22:22:42 PST 2022; root:xnu-7195.141.19~2/RELEASE_X86_64
Binaries:
Node: 14.19.0
npm: 6.14.16
Yarn: 1.22.17
pnpm: 7.0.0-alpha.2
Relevant packages:
next: 12.1.6-canary.4
react: 18.0.0
react-dom: 18.0.0
What browser are you using? (if relevant)
Version 100.0.4896.127 (Official Build) (x86_64)
How are you deploying your application? (if relevant)
No response
Describe the Bug
The deprecation warning for webpack appears when there is a compilation error:
Expected Behavior
It should be possible to use webpack's moduleGraph
API to avoid the warning
To Reproduce
npx create-next-app@latest test-next-warning
cd test-next-warning
- modify
pages/index.js
to manually add some syntax errors yarn dev
- visit
localhost:3000
and you should see the warning in the terminal
Activity
fix(next): use moduleGraph.getIssuer to avoid deprecation warning (ve…
fix(next): use moduleGraph.getIssuer to avoid deprecation warning (#3…
github-actions commentedon May 22, 2022
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.