Solution skill
Webpack on nextjs always throws depency warnings
Complete solution
Shows how to fix webpack on nextjs always throws depency warnings. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Upgrade the Cloudinary npm package to the release that replaced proxy-agent with the native https.Agent. Multiple Next.js users confirmed the dependency warnings disappeared after the upgrade.
Steps
- Upgrade the Cloudinary npm package to the release that replaced proxy-agent with the native https.Agent.
- Multiple Next.js users confirmed the dependency warnings disappeared after the upgrade.
When to use
You are seeing this: Everything is latest version, these warnings are very annoying warn -./node_modules/cloudinary/lib-es5/utils/index.js Critical dependency: the request of a dependency is an... Use this skill when you run into "Webpack on nextjs always throws depency warnings".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
In gh:cloudinary/cloudinarynpm#600 (https://github.com/cloudinary/cloudinarynpm/issues/600), the reporter ran into this: Everything is latest version, these warnings are very annoying warn - ./node_modules/cloudinary/lib-es5/utils/index.js Critical dependency: the request of a dependency is an... The verified resolution: Upgrade the Cloudinary npm package to the release that replaced proxy-agent with the native https.Agent. Multiple Next.js users confirmed the dependency warnings disappeared after the upgrade.
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_GimcyG--FIogHhVmJeU2oA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Webpack on nextjs always throws depency warnings <span>— Vectle</span></a>