Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by
I have regression in npm-deps resolution in 1.10.x for {{material-components-web}}. For sub-dependencies it doesn't resolve the module path correctly. When I require eg. {{@material/snackbar}} it fails with {{Uncaught Error: Undefined nameToPath for module$$material$base$component}}.

Steps to reproduce:


yarn add "@cljs-oss/module-deps" "@material/snackbar"

cat <<EOF > deps.edn
{:deps {org.clojure/clojurescript {:mvn/version "1.10.145"}}}
EOF

clj -m cljs.main -d out -e "(require '[\"@material/snackbar\"])"


Resolution worked in 1.9.946

17 Answers

0 votes
by

Comment made by: rarous

It seems that it works in latest cljs (1.10.339).

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJS-2633 (reported by rarous)
...