When trying to import getPayloadHMR using:
import { getPayloadHMR } from "@payloadcms/next/utilities";
i get the error:
Cannot find module '@payloadcms/next/utilities' or its corresponding type declarations. There are types at '/Users/luiskisters/Desktop/Code/Work/frontend/node_modules/@payloadcms/next/dist/exports/utilities.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.ts(2307)
this does't happen in the payload 3.0 test repo. I am just trying to use the local api using payload.find() but when I tried, I got a error that a slug for a collection I know exists, doesn't exist. In a issue someone said that I need to use getPayloadHMR so that is why I am trying to use getPayloadHMR in the first place. I just want payload.find() to work.