  seems cm is a ES Module, It can not be run as a function. 
Activity
D-Sketon commentedon Dec 1, 2023
I use codemirror@5, it works
peitsan commentedon Mar 31, 2024
I have the same bug alert.