Frontend Angular Tutorials not working

When i try to code the tutorials like on Okta Auth JS and Angular | Okta Developer
i always get the same error:

error TS2416: Property ‘getValuesAfterProceed’ in type ‘EnrollPoll’ is not assignable to the same property in base type ‘Remediator’.
Type ‘() => unknown’ is not assignable to type ‘() => RemediationValues’.
Type ‘unknown’ is not assignable to type ‘RemediationValues’.

23 getValuesAfterProceed(): unknown;

Seems like the tutorial is based on an old version of @okta/okta-auth-js. But when I do, like in the tutorial, “npm i @okta/okta-auth-js” I get the newest version. Why is this tutorial then for old versions? And how can i fix it?