Is '@datapunt/matomo-tracker-react' valid using Matomo in a React application

Everything I’ve see so far says that I should do:

npm install @datapunt/matomo-tracker-react

and then in my react code, I should put the following in my React typescript code:

import { MatomoProvider, createInstance } from '@datapunt/matomo-tracker-react';

The npm install appears to work but typescript complains it can’t find ‘@datapunt/matomo-tracker-react’

The npm install must be done in the root directory for your react project for this to work correctly.