Unity keeps saying that there is no 'SetInteger' for 'Animator', but I added a value to my variable. How do I fix it?

Here is my code(line 65 is where the problem is):

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerMovement : MonoBehaviour
{
private Rigidbody2D rb;
private Animator anim;
private SpriteRenderer sprite;

private float dirX = 0f;
[SerializeField] private float moveSpeed = 7f;
[SerializeField] private float jumpForce = 6f;
private enum movementState { idle, jumping, running, falling }
// Start is called before the first frame update
private void Start()
{
    rb = GetComponent<Rigidbody2D>();
    anim = GetComponent<Animator>();
    sprite = GetComponent<SpriteRenderer>();
}

// Update is called once per frame
private void Update()
{
    dirX = Input.GetAxisRaw("Horizontal");
    rb.velocity = new Vector2(dirX * moveSpeed, rb.velocity.y);

    if (Input.GetButtonDown("Jump"))
    {
        rb.velocity = new Vector2(rb.velocity.x, jumpForce);
    }

    UpdateAnimationState();

}

private void UpdateAnimationState()
{

    movementState state;

    if (dirX > 0f)
    {
        state = movementState.running;
        sprite.flipX = false;
    }
    else if (dirX < 0f)
    {
        state = movementState.running;
        sprite.flipX = true;
    }
    else
    {
        state = movementState.idle;
    }

    if (rb.velocity.y > .1f)
    {
        state = movementState.jumping;
    }
    else if (rb.velocity.y < -.1f)
    {
        state = movementState.falling;
    }
    anim.SetInterger("state",(int)state);
}

}

There is a Typo in SetInteger. Use Auto complete to avoid issues like this.