There is no object exported from next.config.js or the object is empty.
Check if you correctly export configuration in next.config.js file:
next.config.js
module.exports = { /* config options here */ }