syntaxHighlighting giving error

I am trying to play around with the extensions; I am trying to add extensions based on inputs. I am able to add all extensions as present in the basicSetup except for syntaxHighlighting. When I try to add it I get the following error:

I am adding the extensions in the same order are present in basicSetup. Any help on this is highly appreciated!

I got a similar error when upgrading to 6.0. If that is your situation too take a look at this failed to include extension on version later than 0.20.0 · Issue #347 · uiwjs/react-codemirror · GitHub

Thank you very much for that. I am actually starting out on 6.0, but when I am trying to replicate basicSetup I am getting the error, so this did not work.