@ui5/webcomponents-localization/dist/Assets.js import needs to be JSImport.Namespace
Closed this issue · 1 comments
I'm getting this warning in Vite:
target/scala-3.3.1/client-opt/main.js (53811:76) "default" is not exported by "node_modules/@ui5/webcomponents-localization/dist/Assets.js", imported by "target/scala-3.3.1/client-opt/main.js".
I think it's caused by ui5/globals.scala
importing Assets.js with JSImport.Default
. But Assets.js does not export anything, not even a default, so we get this warning.
The entirety of Assets.js:
// Currently the base package provides CLDR assets only
import "./generated/json-imports/LocaleData.js";
//# sourceMappingURL=Assets.js.map
I fixed similar warnings in my own code by using JsImport.Namespace
, I'm pretty sure this is the solution here too.
Woops, Completely forgot about that. 🙈
You are right, lots of things need to change from Default
to Namespace
, like the Assets.js
but also the illustrated messages, the calendars...
Thanks you 🙏