TypeError: descs is not iterable

while using lang-markdown it shows error

extensions: [
        basicSetup,
        markdown({codeLanguages: commonmarkLanguage}) 
      ],

commonmarkLanguage or markdownLanguage shows same error

node_modules/@codemirror/language/dist/index.js

That option takes an array or a function, not a single language.