RyanMcG / lein-npm

Manage Node dependencies for CLJS projects
295 stars 43 forks source link

Wierd error when importing @blueprintjs/core #51

Closed dvdreddy closed 7 years ago

dvdreddy commented 7 years ago
(defproject npm-error "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :license {:name "Eclipse Public License"
            :url "http://www.eclipse.org/legal/epl-v10.html"}
  :dependencies [[org.clojure/clojure "1.8.0"]]
  :plugins [[lein-npm "0.6.0"]]
  :npm {:dependencies [[@blueprintjs/core "*"]]
        :root "resources/chrome_extension/npm"}
  )

For the simple project.clj above I am seeing this wierd error

java.lang.IllegalArgumentException: No value supplied for key:
 at clojure.lang.PersistentHashMap.create (PersistentHashMap.java:77)
    clojure.core$hash_map.invokeStatic (core.clj:387)
    clojure.core$hash_map.doInvoke (core.clj:379)
    clojure.lang.RestFn.applyTo (RestFn.java:137)
    clojure.core$apply.invokeStatic (core.clj:646)
    clojure.core$apply.invoke (core.clj:641)

I am able to import other dependencies like react and stuff. Also I am able to successfully install via npm install @blueprintjs/core

Is there something I am missing here ?

danielcompton commented 7 years ago

The @ symbol may be causing a problem?

dvdreddy commented 7 years ago

without @ its not able to find the package

danielcompton commented 7 years ago

What happens if you put it inside a string? "@blueprintjs/core"

dvdreddy commented 7 years ago

It worked now, Thanks a lot

I remembered trying this and it failed but I might have messed with something else also at that time I guess

Thanks again