Open Artur- opened 1 year ago
Seems to be related to lit-html having an export map and possibly this plugin trying to read package.json by importing it from the package, which is not allowed
Seems like Vite uses
import resolve from 'resolve'
...
resolve.sync(id)
for this and that one can properly resolve lit-html/package.json
It seems that package.json cannot be read because of this reason, the export
in the package.json
file is not defined.
A version option can be added to eliminate this problem,
shared:{
"lit-html": {
version: "^2.6.1"
}
}
Versions
Reproduction
What is Expected?
The project builds
What is actually happening?
It is not at all clear what the problem is or what to check so I have no idea what to do next