Make sure that your providers file is 'use client' this happened to me too many times and i keep forget about it
P.s: i think @chakra-ui/next-js isn't needed anymore