Error opening HTML file

I updated @codemirror/autocomplete@6.5.1 to 6.6.1。HTML syntax parsing error

 "@codemirror/lang-html": "^6.0.0",
 "@codemirror/autocomplete": "^6.6.1",

import { html } from '@codemirror/lang-html';

// When I comment out the html() it works fine
extension:[html()]

PS: other languages are normal

Most likely npm made a mess of your dependency tree, duplicating packages. Try clearing the package lock and reinstalling.

Yes, thank you very much marijn. I upgraded the version of Node from 16.3.1 to 18.16.0, and there is a problem with the dependencies installed by pnpm install

Hey marijn. Does codemirror depend on the version requirements of babel?

Babel is a transpilation tool, and should not affect codemirror. However, your Babel version and configuration may impact the browsers you are able to target.

ok, got it, thanks for the answer。I updated babel and got a bunch of unexpected errors, make sure, thanks