As stated by a GitHub user in this issue, you need to add use client to the top of the file.
use client