Skip to content

Commit d3f258d

Browse files
authored
Add guide to manually link local module to README (google-map-react#912)
1 parent 4aef21a commit d3f258d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,17 @@ npm start # runs create-react-app dev server
186186

187187
Now, anytime you make a change to your library in `src/` or to the example app's `example/src`, `create-react-app` will live-reload your local dev server so you can iterate on your component in real-time.
188188

189+
### Manual link-install
190+
If you get the error `Module not found: Can't resolve 'google-react-map'...` while trying to run the example app, you need to manually link your local development module, try the following steps:
191+
1. In the root folder:
192+
```bash
193+
npm link
194+
```
195+
2. Go into `example/` and (after installing other dependencies) execute:
196+
```bash
197+
npm link google-map-react
198+
```
199+
189200
## License
190201

191202
[MIT](./LICENSE.md)

0 commit comments

Comments
 (0)