moshen / node-googlemaps

A simple way to query the Google Maps API from Node.js
MIT License
560 stars 148 forks source link

Building --prod with my ionic project #145

Open jeybs opened 7 years ago

jeybs commented 7 years ago

Hi, im currenty havaing when i build my project using ionic framework for production. it's working on building on development. but i got an error when i build on production. there's no 'constants'

"ionic cordova build browser" - Success "ionic cordova build browser --prod" - Failed

here's the log error Error: ./~/googlemaps/lib/index.js Module not found: Error: Can't resolve './config/constants' in 'C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib' resolve './config/constants' in 'C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib' using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib) Field 'browser' doesn't contain a valid alias configuration after using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib) using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib/config/constants) no extension Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants doesn't exist .js Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.js doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.ts doesn't exist as directory C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants doesn't exist [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.js] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.ts] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants] @ ./~/googlemaps/lib/index.js 16:24-53 @ ./src/pages/branch-detail/branch-detail.js @ ./src/app/app.module.js @ ./src/app/app.module.ngfactory.js @ ./src/app/main.ts,./~/googlemaps/lib/placeAutocomplete.js Module not found: Error: Can't resolve './config/constants' in 'C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib' resolve './config/constants' in 'C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib' using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib) Field 'browser' doesn't contain a valid alias configuration after using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib) using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib/config/constants) no extension Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants doesn't exist .js Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.js doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.ts doesn't exist as directory C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants doesn't exist [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.js] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.ts] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants] @ ./~/googlemaps/lib/placeAutocomplete.js 13:17-46 @ ./~/googlemaps/lib/index.js @ ./src/pages/branch-detail/branch-detail.js @ ./src/app/app.module.js @ ./src/app/app.module.ngfactory.js @ ./src/app/main.ts,./~/googlemaps/lib/placeSearchText.js Module not found: Error: Can't resolve './config/constants' in 'C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib' resolve './config/constants' in 'C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib' using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib) Field 'browser' doesn't contain a valid alias configuration after using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib) using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib/config/constants) no extension Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants doesn't exist .js Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.js doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.ts doesn't exist as directory C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants doesn't exist [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.js] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.ts] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants] @ ./~/googlemaps/lib/placeSearchText.js 13:17-46 @ ./~/googlemaps/lib/index.js @ ./src/pages/branch-detail/branch-detail.js @ ./src/app/app.module.js @ ./src/app/app.module.ngfactory.js @ ./src/app/main.ts,./~/googlemaps/lib/placeSearchNearby.js Module not found: Error: Can't resolve './config/constants' in 'C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib' resolve './config/constants' in 'C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib' using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib) Field 'browser' doesn't contain a valid alias configuration after using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib) using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib/config/constants) no extension Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants doesn't exist .js Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.js doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.ts doesn't exist as directory C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants doesn't exist [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.js] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.ts] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants] @ ./~/googlemaps/lib/placeSearchNearby.js 13:17-46 @ ./~/googlemaps/lib/index.js @ ./src/pages/branch-detail/branch-detail.js @ ./src/app/app.module.js @ ./src/app/app.module.ngfactory.js @ ./src/app/main.ts,./~/googlemaps/lib/placeDetails.js Module not found: Error: Can't resolve './config/constants' in 'C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib' resolve './config/constants' in 'C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib' using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib) Field 'browser' doesn't contain a valid alias configuration after using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib) using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib/config/constants) no extension Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants doesn't exist .js Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.js doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.ts doesn't exist as directory C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants doesn't exist [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.js] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.ts] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants] @ ./~/googlemaps/lib/placeDetails.js 13:17-46 @ ./~/googlemaps/lib/index.js @ ./src/pages/branch-detail/branch-detail.js @ ./src/app/app.module.js @ ./src/app/app.module.ngfactory.js @ ./src/app/main.ts,./~/googlemaps/lib/geocode.js Module not found: Error: Can't resolve './config/constants' in 'C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib' resolve './config/constants' in 'C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib' using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib) Field 'browser' doesn't contain a valid alias configuration after using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib) using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib/config/constants) no extension Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants doesn't exist .js Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.js doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.ts doesn't exist as directory C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants doesn't exist [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.js] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.ts] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants] @ ./~/googlemaps/lib/geocode.js 13:17-46 @ ./~/googlemaps/lib/index.js @ ./src/pages/branch-detail/branch-detail.js @ ./src/app/app.module.js @ ./src/app/app.module.ngfactory.js @ ./src/app/main.ts,./~/googlemaps/lib/distance.js Module not found: Error: Can't resolve './config/constants' in 'C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib' resolve './config/constants' in 'C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib' using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib) Field 'browser' doesn't contain a valid alias configuration after using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib) using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib/config/constants) no extension Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants doesn't exist .js Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.js doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.ts doesn't exist as directory C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants doesn't exist [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.js] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.ts] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants] @ ./~/googlemaps/lib/distance.js 14:17-46 @ ./~/googlemaps/lib/index.js @ ./src/pages/branch-detail/branch-detail.js @ ./src/app/app.module.js @ ./src/app/app.module.ngfactory.js @ ./src/app/main.ts,./~/googlemaps/lib/reverseGeocode.js Module not found: Error: Can't resolve './config/constants' in 'C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib' resolve './config/constants' in 'C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib' using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib) Field 'browser' doesn't contain a valid alias configuration after using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib) using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib/config/constants) no extension Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants doesn't exist .js Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.js doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.ts doesn't exist as directory C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants doesn't exist [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.js] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.ts] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants] @ ./~/googlemaps/lib/reverseGeocode.js 13:17-46 @ ./~/googlemaps/lib/index.js @ ./src/pages/branch-detail/branch-detail.js @ ./src/app/app.module.js @ ./src/app/app.module.ngfactory.js @ ./src/app/main.ts,./~/googlemaps/lib/directions.js Module not found: Error: Can't resolve './config/constants' in 'C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib' resolve './config/constants' in 'C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib' using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib) Field 'browser' doesn't contain a valid alias configuration after using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib) using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib/config/constants) no extension Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants doesn't exist .js Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.js doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.ts doesn't exist as directory C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants doesn't exist [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.js] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.ts] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants] @ ./~/googlemaps/lib/directions.js 14:17-46 @ ./~/googlemaps/lib/index.js @ ./src/pages/branch-detail/branch-detail.js @ ./src/app/app.module.js @ ./src/app/app.module.ngfactory.js @ ./src/app/main.ts,./~/googlemaps/lib/staticMap.js Module not found: Error: Can't resolve './config/constants' in 'C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib' resolve './config/constants' in 'C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib' using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib) Field 'browser' doesn't contain a valid alias configuration after using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib) using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib/config/constants) no extension Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants doesn't exist .js Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.js doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.ts doesn't exist as directory C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants doesn't exist [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.js] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.ts] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants] @ ./~/googlemaps/lib/staticMap.js 16:17-46 @ ./~/googlemaps/lib/index.js @ ./src/pages/branch-detail/branch-detail.js @ ./src/app/app.module.js @ ./src/app/app.module.ngfactory.js @ ./src/app/main.ts,./~/googlemaps/lib/elevationFromLocations.js Module not found: Error: Can't resolve './config/constants' in 'C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib' resolve './config/constants' in 'C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib' using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib) Field 'browser' doesn't contain a valid alias configuration after using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib) using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib/config/constants) no extension Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants doesn't exist .js Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.js doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.ts doesn't exist as directory C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants doesn't exist [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.js] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.ts] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants] @ ./~/googlemaps/lib/elevationFromLocations.js 14:17-46 @ ./~/googlemaps/lib/index.js @ ./src/pages/branch-detail/branch-detail.js @ ./src/app/app.module.js @ ./src/app/app.module.ngfactory.js @ ./src/app/main.ts,./~/googlemaps/lib/streetView.js Module not found: Error: Can't resolve './config/constants' in 'C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib' resolve './config/constants' in 'C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib' using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib) Field 'browser' doesn't contain a valid alias configuration after using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib) using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib/config/constants) no extension Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants doesn't exist .js Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.js doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.ts doesn't exist as directory C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants doesn't exist [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.js] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.ts] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants] @ ./~/googlemaps/lib/streetView.js 13:17-46 @ ./~/googlemaps/lib/index.js @ ./src/pages/branch-detail/branch-detail.js @ ./src/app/app.module.js @ ./src/app/app.module.ngfactory.js @ ./src/app/main.ts,./~/googlemaps/lib/timezone.js Module not found: Error: Can't resolve './config/constants' in 'C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib' resolve './config/constants' in 'C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib' using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib) Field 'browser' doesn't contain a valid alias configuration after using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib) using description file: C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\package.json (relative path: ./lib/config/constants) no extension Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants doesn't exist .js Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.js doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.ts doesn't exist as directory C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants doesn't exist [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.js] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants.ts] [C:\Users\81014102\Desktop\Ionic\sample\node_modules\googlemaps\lib\config\constants] @ ./~/googlemaps/lib/timezone.js 13:17-46 @ ./~/googlemaps/lib/index.js @ ./src/pages/branch-detail/branch-detail.js @ ./src/app/app.module.js @ ./src/app/app.module.ngfactory.js @ ./src/app/main.ts