googlemaps / googlemaps/google-maps-services-js
Error: Cannot find module 'combined-stream
- Dominant language
- TypeScript
- Stars
- 3.1k
- Forks
- 654
- Avg merge
- 3m
- Merged PRs (30d)
- 4
Description
Error: Cannot find module 'combined-stream'\nRequire stack:\n- /var/task/node_modules/@googlemaps/google-maps-services-js/node_modules/form-data/lib/form_data.js

Please be sure to include as much information as possible:
#### Environment details
1. zipcode: `3333`
2. win10
3. nodejs, serverless
#### Code example
```nodejs
# example
import GoogleMaps from '@googlemaps/google-maps-services-js';
let googleMapsClient;
function createGoogleMapsClient() {
if (googleMapsClient) {
return googleMapsClient;
}
googleMapsClient = GoogleMaps.createClient({
key: process.env.GOOGLE_PLACES_API_KEY,
});
return googleMapsClient;
}
export default createGoogleMapsClient;
export function placesAutoComplete(query, options = {}) {
console.log('placesAutoComplete===');
const components = {};
if (options.countryCode)
components.country =
options.countryCode; /* can't pass undefined as country */
return createGoogleMapsClient()
.places.Autocomplete({
input: query,
components,
types: options.types,
})
.then((response) => response.json.predictions);
}
```

seems like form-data trying to find `combined-stream`

Following these steps will guarantee the quickest resolution possible.
Thanks!
Contributor guide
Assessment
This issue has not been assessed yet.