I came across this rather confusing message while developing the next.js /React application.

TypeError: Resolver is not a function

The solution turned out to be very simple.

I commented out the default export component of the API call I was editing while doing some editing.

export default <name>
Copy the code

So, make sure you have a default exit and this error will go away.