I want to create a gutter for breakpoints, so I first wanted to test gutters in general and tried to make a simple lineNumbers gutter: export const breakPointGutter = lineNumbers({formatNumber: (n) => "#"+n});
But I keep getting this error: TypeError: Cannot read property 'extension' of undefined".
What could be the reason for this? (I also tried doing passing an empty gutter configuration: gutter({}) but I get the same error)
Also I think the documentation would really benefit of a gutter example
I think you’re running into a package manager problem where you end up with multiple versions of @codemirror/state installed, which leads to precisely this error. Removing node_modules and your package lock and reinstalling tends to solve it.
yes, gutter seems to use it’s own version of state (there is only one different version, the main one I’m using as well) - is there an easy way to fix this?