MIME type (‘text/html’) is not a supported stylesheet MIME type

I have tried almost every solution for the problem which includes.
giving type for <link rel="stylesheet" href="./style.css" rel="nofollow noreferrer noopener" rel="nofollow noreferrer noopener" rel="nofollow noreferrer noopener" rel="nofollow noreferrer noopener" /> use of app.use(express.static('public')) and many more but it seems I am not able to find a solution for this.