Why do i get this error message on xstate createMachine

enter image description here

I just created react app by using
npx create-react-app my-app --template typescript

then installed xstate using
npm install xstate --save

after importing
import { createMachine } from "xstate";
i get the error provided on screenshot, couldn’t find any answer to that problem, any ideas?