activist icon indicating copy to clipboard operation
activist copied to clipboard

Suppress warnings of "unmet peer dependencies" in frontend docker build

Open andrewtavis opened this issue 1 year ago • 2 comments

Terms

Behavior

A general issue with the frontend Docker build that's come up is that we're consistently getting errors like the following when it's starting:

nuxt_frontend   | warning "nuxt > nitropack > @netlify/functions > @netlify/serverless-functions-api > @opentelemetry/otlp-transformer > @opentelemetry/[email protected]" has unmet peer dependency "@opentelemetry/api@>=1.0.0 <1.9.0".

The solution in the past has been to just install these dependencies, but if we keep on doing this then the package.json is going to get huge. It'd be great if we could look into options for running Nuxt within Docker that would allow us to ignore these warnings, and along with this we should then go through and find those dependencies that are not directly used in the frontend and remove them (assuming that they were installed to make these warnings go away).

Note - related issues are:

  • #724
  • #872

Happy to support on this or get to it myself! 😊

andrewtavis avatar May 03 '24 21:05 andrewtavis

CC @aasimsyed :) With the most recent yarn updates from the damn yarn install we have even more, so I think your suggestion of ignoring these should be acted on 😊 Just pinging you so you have an overview of this!

andrewtavis avatar May 03 '24 21:05 andrewtavis

Note that this should be worked on when we make all frontend dependencies explicit in #872 :)

andrewtavis avatar Jul 09 '24 12:07 andrewtavis

Closed by #951 :) I agree that this should be a problem anymore, @arescrimson! We can readdress it if it comes back in a new issue. Appreciate the support and you also pointing out how this one can also be closed!

andrewtavis avatar Aug 31 '24 21:08 andrewtavis