Howdy everyone, i have a question on using version...
# javascript
k
Howdy everyone, i have a question on using version catalog file for js and wasm projects. is it possible to declare npm dependencies in the libs.version.toml? cause when i tried to add the js-joda dependency to the version catalog file i get an error
In version catalog libs, on alias 'js-joda-timezone' module '@js-joda/timezone' is not a valid module notation.
Does this mean i cannot add my web js and wasm dependencies to the version catalog file? or am i missing something
j
I haven't figured it out either, so the best I managed to do was
Copy code
implementation(npm("uhtml", libs.versions.uhtml.get()))
and defining a
Copy code
[version]

uhtml = "4.7.0"
e
That's the way it is with npm dependencies. Only the version can be externalized, because the
npm()
call returns a custom
Dependency
implementation -
NpmDependency
.