Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

google-maps-react is not supported in React 17 #198

@Simply007

Description

@Simply007

Brief bug description

google-maps-react is not supported in React 17

Repro steps

  1. Remove node_modules and package-lock.json
  2. Run npm i

Error:

ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react
npm WARN   react@"^17.0.2" from the root project
npm WARN   9 more (@simply007org/kontent-react-components, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"~0.14.8 || ^15.0.0 || ^16.0.0" from [email protected]
npm WARN node_modules/google-maps-react
npm WARN   google-maps-react@"^2.0.6" from the root project
npm WARN
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/react
npm WARN   peer react@"~0.14.8 || ^15.0.0 || ^16.0.0" from [email protected]
npm WARN   node_modules/google-maps-react
npm WARN     google-maps-react@"^2.0.6" from the root project
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react-dom
npm WARN   react-dom@"^17.0.2" from the root project
npm WARN   2 more (@simply007org/kontent-react-components, react-scroll)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react-dom@"~0.14.8 || ^15.0.0 || ^16.0.0" from [email protected]
npm WARN node_modules/google-maps-react
npm WARN   google-maps-react@"^2.0.6" from the root project
npm WARN 
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/react-dom
npm WARN   peer react-dom@"~0.14.8 || ^15.0.0 || ^16.0.0" from [email protected]
npm WARN   node_modules/google-maps-react
npm WARN     google-maps-react@"^2.0.6" from the root project

Expected behavior

No error - try to find an alternative package for the Google Maps component.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions