Hello David,very nice component.These days I am getting an

Hello David,

very nice component.

These days I am getting an error using version 2.3.1 together with Vaadin 14.8.18.


[38;5;196mERROR in ../node_modules/.pnpm/lit@2.4.0/node_modules/lit/index.js[0m

[38;5;196mModule not found: Error: Can't resolve 'lit-html/is-server.js' in '/MyVaadin14.8.18.Project/node_modules/.pnpm/lit@2.4.0/node_modules/lit'[0m

[38;5;196m @ ../node_modules/.pnpm/lit@2.4.0/node_modules/lit/index.js 1:87-122 1:87-122[0m

[38;5;196m @ ../node_modules/@vaadin/flow-frontend/@f0rce/lit-ace/lit-ace.js[0m

[38;5;196m @ ../target/frontend/generated-flow-imports.js[0m

[38;5;196mℹ 「wdm」: Failed to compile.[0m


I still have got same problem with versions 2.1.1, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1.

Version 2.0.0 is still working.

Problem exists since beginning of october.

Maybe there was an update of a component your lib depends on.


Thank you very much for your help.


Hi,

I have been having the same issue. The problem is with latest lit version needs a higher version of lit-html.


lit-ace specifies

"lit": "^2.2.8"

This then causes it to get the latest 2.4.0

We need to force it to the working version


if you run a clean front-end your package.json will look something like below:

{
  "name": "no-name",
  "license": "UNLICENSED",
  "dependencies": {
  },
  "devDependencies": {
  }
}


If you then amend it to override lit version as below (note I am using pnpm)


{
  "name": "no-name",
  "license": "UNLICENSED",
  "dependencies": {

},
“pnpm”: {
“overrides”: {
“lit”: “2.2.8”
}
},
“devDependencies”: {

}
}


Then run build-frontend and it will now work


:)