0

Adding libraries from npm in root sage 8.5.3, I got error in console with required not found.

var GoogleMapsLoader = require('google-maps');
              GoogleMapsLoader.load(function(google) {
                new google.maps.Map(el, options);
            });

Note: I add that code on main.js using sage 8.5.3 but the code says require not found in my console

Samuel Lelièvre
  • 3,212
  • 1
  • 14
  • 27

1 Answers1

0

Did you confirm that is the correct name? You can search for it on the official NPM website.

Spencer Hill
  • 1,043
  • 2
  • 15
  • 38