React-codemirror 2 linting feature not working

I have created a react-codemirror 2 component in my react app but the linting feature of the package is not working. I tried browsing other stack overflow questions but since the questions are at …

CodeMirror Doesn’t Display HTML Mode

I am trying to use CodeMirror modes in my web application, but it won’t highlight the words for the mode “htmlmixed”. I don’t understand what is going wrong. The paths to each file are correct because I am not getting any 404 errors. Here is what I did: Any help would be greatly appreciated! Thank you! Answer The htmlmixed mode depends on the xml, javascript, and css modes. They must be included for htmlmixed to work. Here is an example: