I am using withImages as documented in the Expo documentation but am getting TypeError: Cannot convert undefined or null to object.
Here is the link to the documentation https://docs.expo.dev/guides/using-nextjs/#image-support
And here is the implementation:
const { withExpo } = require("@expo/next-adapter");
const withImages = require("next-images");
module.exports = withExpo(
withImages({
projectRoot: __dirname,
})
);