googlemaps / googlemaps/js-samples

sample-react-map missing "fast-equals@^3.0.3" dependencies

Open
#1,351 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
805
Forks
836
PR merge metrics
No merged PRs in 30d

Description

### Operating system

WIN10

### Browser Version

Microsoft Edge 108.0.1462.54

### How severe is the bug?

low

### Bug description

I'm trying to use the react map sample and follow the document steps to clone the sample code.
```
git clone -b sample-react-map https://github.com/googlemaps/js-samples.git
cd js-samples
npm i
npm start
```

The dev server will show 'Failed to resolve import "fast-equals" from "index.tsx"' after accessing the website as follow.
![image](https://user-images.githubusercontent.com/71483852/209625167-24c89f48-a9bb-4349-9023-c1a0d5d463b7.png)

This problem will be resolved by adding missing dependencies.
![image](https://user-images.githubusercontent.com/71483852/209625597-67015f13-dca1-4f74-8ed8-54dcd25b3aaa.png)

### Steps to reproduce

- git clone -b sample-react-map https://github.com/googlemaps/js-samples.git
- cd js-samples
- npm i
- npm start
- access the website

### Console log output

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.