Open frabjous opened 1 year ago
hey guys, may I know which version of codemirror was working for this extension?
otherwise to use the latest 6.0.1 requires replacing the lezer
dep with @lezer/lr
. as seen here https://www.npmjs.com/package/lezer
Overview.
I am getting an error with this package when trying to make use of it in a codemirror project.
I'm a newbie to codemirror, and just a dabbler not a full time programmer so bear with me.
The error for me can be produced as easily as the following:
Steps to reproduce.
Create a new project with
npm init
.Install codemirror and rollup/@rollup-plugin-node-resolve along with this project:
npm install codemirror lang-tex rollup @rollup/plugin-node-resolve
.Create a javascript module that loads the package. I can get the problem with something as simple as this:
node_modules/.bin/rollup editor.mjs -f iife -o editor.bundle.js -p @rollup/plugin-node-resolve
as suggested here.When I do so I get this output:
The expected behavior is that I not get this error, and that I be able to use the extension in a simple codemirror instance.
It's possible I just didn't install things right. Again, newbie.
Versions
I did get a lot of deprecation warnings about lezer packages when installing lang-tex, which may or may not be relevant.
Note I posted about this in the codemirror discussion forum here but didn't get any replies.