No operations defined in spec! – I get this error even though the swagger is setup and the end points are defined

It may be that there is an issue with how you are referencing your routes. The referencing must always start from the root of your application. So './routes/abc.js' must be changed to 'the-folder-name-in-root/routes/abc.js'

Leave a Comment