Cant add third party plugin #1393

Closed
opened 2025-08-09 17:19:58 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @F0rc0sigan on 9/10/2016

I am trying to add goofle maps to angular2 template. I restored package google-maps-api from npm. Add it to webpack.config.vendor.js to entry -> vendor. Then run webpack --config webpack.config.vendor.js and webpack. Then tried to use global variable GoogleMapsLoader in component but always getting that it does not exist. What am i doing wrong? Thanks for any help.

Update.
I could acieve adding new library. I am doing like this in my component:
import * as $ from 'jquery';
import * as GoogleMapsLoader from 'google-maps';
After this i can access this frameworks.

But after restart server, server-boot gives exception that google-maps is only for browser. Is there any better way to use external libraries, so it does not break server-boot?

*Originally created by @F0rc0sigan on 9/10/2016* I am trying to add goofle maps to angular2 template. I restored package google-maps-api from npm. Add it to webpack.config.vendor.js to entry -> vendor. Then run webpack --config webpack.config.vendor.js and webpack. Then tried to use global variable GoogleMapsLoader in component but always getting that it does not exist. What am i doing wrong? Thanks for any help. Update. I could acieve adding new library. I am doing like this in my component: import \* as $ from 'jquery'; import \* as GoogleMapsLoader from 'google-maps'; After this i can access this frameworks. But after restart server, server-boot gives exception that google-maps is only for browser. Is there any better way to use external libraries, so it does not break server-boot?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1393
No description provided.