@google/maps NPM not working

When I try to import / require it, it says that @google/maps doesn’t exist. Has anyone gotten it to work? if so, could you show me how?

Even though the require() statement gets flagged as an error, it actually works and the library will be available in your code.