Compiling with Warnings
See original GitHub issueBug report
Describe the bug
When building the project locally and on Now I’m getting these warnings:
Compiled with warnings.
./node_modules/next/dist/next-server/server/load-components.js
Critical dependency: the request of a dependency is an expression
./node_modules/next/dist/next-server/server/load-components.js
Critical dependency: the request of a dependency is an expression
./node_modules/next/dist/next-server/server/load-components.js
Critical dependency: the request of a dependency is an expression
./node_modules/next/dist/next-server/server/load-components.js
Critical dependency: the request of a dependency is an expression
./node_modules/next/dist/next-server/server/require.js
Critical dependency: the request of a dependency is an expression
./node_modules/next/dist/next-server/server/require.js
Critical dependency: the request of a dependency is an expression
To Reproduce
1- Have a simple next.js app and try build
Expected behavior
No warnings
Screenshots
If applicable, add screenshots to help explain your problem.
System information
- OS: macOS 10.14.6
- Version of Next.js: Same issue on 9.2.1 and 9.2.3-canary.8
Issue Analytics
- State:
- Created 4 years ago
- Reactions:16
- Comments:14 (5 by maintainers)
Top Results From Across the Web
Compiler warnings - IBM
Warnings indicate other unusual conditions in your code that might indicate a problem, although compilation can (and does) proceed.
Read more >Why Bother with Compiler Warnings? - Cprogramming.com
Compilers emit both erorrs, which prevent your code from compiling at all, and warnings, which indicate a potential problem, but still let your...
Read more >Why should I always enable compiler warnings?
A compiler warning signals a potentially serious problem in your code. The problems listed above are almost always fatal; others may or may...
Read more >Warning Options (Using the GNU Compiler Collection (GCC))
3.8 Options to Request or Suppress Warnings. Warnings are diagnostic messages that report constructions that are not inherently erroneous but that are risky ......
Read more >7.3. Compile Errors and Warnings
Compile errors and warnings. A compile error happens when the compiler reports something wrong with your program, and does not produce a machine-language ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@timneutkens Not sure if this was addressed through some other issue, but if repro steps are needed to reopen this, I can repro this with nothing but the starter template (which pulls
next@9.3.5).Repro steps:
npm init next-app(Select “Default starter app” when prompted for a template)next.config.js(as per docs) with:npm run buildResult is:
Console output
Additional info:
I’ve been downgrading Next to see if I can see when this started happening, and I’ve observed that
next@9.2.2seems to be the first version that is showing this issue (next@9.2.1logging no warnings).Unless this is expected from Next itself by default, it does not seem like a user added dependency is causing this, considering it can be reproed with the starter template?
Hopefully it’s useful.
Shouldn’t this be reopened? I’m experiencing this issue as well.