Error: Property 'authenticate' does not exist on type 'typeof Moralis'

I m following the tic-tac-toe tutorial on Moralis demo github repo, but I am getting the following error Property 'authenticate' does not exist on type 'typeof Moralis'. after npm installing it and running it.

Error:

Property 'authenticate' does not exist on type 'typeof Moralis'.  TS2339

     6 |   const [userData, setUser] = useUserContext();
     7 |   const onLogin = async () => {
  >  8 |     const user = await Moralis.authenticate();
       |                                ^
     9 |     setUser(user.attributes);
    10 |   };

you run that in nodejs directly?

or you say that it is only a typescript error?

That is the error log im receiving. I am following this repo from moralis

that seems to be a repository from 1 year ago, a lot of things changed since one year ago.
you could try a more recent tutorial, the documentation is here:
https://docs.moralis.io/

this is a tutorial from today:

this one from last week:

I already completed the netflix one, I am following the casino dapp tutorial but having some issues Main.js:129 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'Contract') @cryptokid