Module not found: Can't resolve 'moralis/types' in

i get this erroor

Module not found: Can’t resolve ‘moralis/types’ in
i have installed moralis using npm install moralis and imported moralis/types

import React, { useState } from 'react';
import styled from 'styled-components';
import PropTypes from 'prop-types';
import { useMoralis } from "react-moralis";
import Moralis from 'moralis/types';

i am in learning process and wanted to practice moralis object

a function to new instance to moralis object

const Orders =  async () =>{
    const OrdersList = Moralis.Object.extend('OrdersList');
    const orderz = new OrdersList ();

You can try to look at this documentation about how to use react with Moralis:

where did you find this line in documentation?

imported auto by moralis code snippest

I see this in documentation: const { Moralis, isInitialized, } = useMoralis();

thank you, back to the documentation