-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DX Enhancement] Suppress missing dep warning from Webpack #33
Comments
minimal
to true, warning are still showing in the consoleminimal
to true, warnings about missing "@sanity/client" are still showing in the console
@mornir Thanks for this! This warning is generated by webpack because However, I'll see what I can do. |
Yes, it's just a bit annoying with HMR. The warning is printed at every saves. |
I had a (amateur) look into it. Actually the following line just checks if the dependency "@sanity/client" is installed, returning a boolean? I did some research online and I didn't find anything conclusive to suppress that warning. If I do install the Another solution would be to just remove that check. Then instead of a nice consola warning, the console would print: |
minimal
to true, warnings about missing "@sanity/client" are still showing in the console
Version
module: 0.3.9
nuxt: 2.14.6
Nuxt mode
mode:
Nuxt configuration
https://github.com/mornir/terminofeu-web/blob/dev/nuxt.config.js
Reproduction
https://github.com/mornir/terminofeu-web
Link:
What is expected?
The following warning is not shown when client is set to minimal:
Warning: Module not found: Error: Can't resolve '@sanity/client'
What is actually happening?
Warning is shown regardless of minimal setting
Additional information
If the minimal key is missing, the warning is correct: " To disable this warning, set sanity: { minimal: true } in your nuxt.config.js."
Checklist
The text was updated successfully, but these errors were encountered: