Skip to content

Mandatory Googlemaps/Markerclusterer dependency in v0.12.2 #536

@stephfh

Description

@stephfh

Hello!

I have just scaffolded a new Nuxt project using the Nuxt CLI (as described in the Nuxt Docs), I have then added nuxt/scripts from the list of suggested modules(among others).

This now adds @googlemaps/markerclusterer to the main package.json as is correct, since it's a required peer dependency:

npm why @googlemaps/markerclusterer
@googlemaps/markerclusterer@2.6.2 peer
node_modules/@googlemaps/markerclusterer
  @googlemaps/markerclusterer@"^2.6.2" from the root project
  peer @googlemaps/markerclusterer@"^2.6.2" from @nuxt/scripts@0.12.2
  node_modules/@nuxt/scripts
    @nuxt/scripts@"^0.12.2" from the root project

In terms of cleaner dependency trees for a actual projects (and less things you have to check yourself when scaffolding a project ;)), that may not need to handle Google Maps in their project, can we maybe achieve to have this as an optional dependency as well (just like the other peer-deps are)?

Repro:
Run npm create nuxt@latest (as per Nuxt documentation), walk through the CLI and tick at least @nuxt/scripts to be installed as an additional module. Then check your project's package.json it has the aforementioned dependency in it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions