This content originally appeared on flaviocopes.com and was authored by flaviocopes.com
I ran into this rather puzzling message while working on a Next.js/React app:
TypeError: resolver is not a function
Turned out the solution was very simple.
I was doing some editing and I commented out the default export to component of the API call I was editing:
export default <name>
So, make sure you have a default export and the error will go away.
This content originally appeared on flaviocopes.com and was authored by flaviocopes.com

flaviocopes.com | Sciencx (2021-06-18T05:00:00+00:00) React, how to fix the TypeError: resolver is not a function error. Retrieved from https://www.scien.cx/2021/06/18/react-how-to-fix-the-typeerror-resolver-is-not-a-function-error/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.