allenhwkim / angularjs-google-maps

The Simplest AngularJS Google Maps V3 Directive
http://ngmap.github.io
MIT License
1.52k stars 516 forks source link

ERROR in multi vendor Webpack & ngMap #858

Closed beshad closed 6 years ago

beshad commented 6 years ago

hi guys,

my app runs fine in dev mode on my laptop but as soon as i try to gulp build it on DigotalOcean server i get the bellow error:

`RROR in multi vendor Module not found: Error: Cannot resolve module 'ngMap' in /var/www/MY_SITE/html @ multi vendor

ERROR in ./client/app/app.js Module not found: Error: Cannot resolve module 'ngMap' in /var/www/demo.ar.truescape.com/html/client/app @ ./client/app/app.js 19:13-29`

Child html-webpack-plugin for "../client/app.html":

here is the code in webpack.make.js

`if(TEST) { config.entry = {}; } else { config.entry = { app: './client/app/app.js', polyfills: './client/polyfills.js', vendor: [ 'angular', 'angular-animate', 'angular-aria', 'angular-cookies', 'angular-resource',

            'angular-sanitize',
            'angular-socket-io',
            'angular-ui-bootstrap',
            'angular-ui-router',
            'lodash',
            'ngMap'
        ]
    };
}`

am i missing something here? how come ngMap is known on my machine but not on the server?

thanks