CodeMirror plugin crashed: TypeError: tags is undefined

I created a language package several weeks ago and used it with @codemirror/basic-setup and it was working fine.
Now, when I use codemirror instead, it throws this error.

Check if there were any 0.x versions of @codemirror of @lezer packages kept back. This error occurs when mixing pre-6.0 and post-6.0 versions (1.0 for @lezer).

Thanks, It works now.