hoplon / ui

experimental ui component library for the browser
31 stars 6 forks source link

build failure: required namespace "cljsjs.markdown" is not available #35

Open NateHerman opened 9 months ago

NateHerman commented 9 months ago

I added the [hoplon/ui "0.3.0-SNAPSHOT"] dependency to shadow-cljs.edn and required hoplon.ui :as ui in my view.cljs file and reran npx shadow-cljs watch app and got the following error:

[:app] Build failure: The required namespace "cljsjs.markdown" is not available, it was required by "hoplon/ui.cljs"

Either I'm missing something or a hoplon/ui dependency needs fixed or updated? I'm a little too new to programming to understand fully what's gone wrong.

Thanks, Nate

mynomoto commented 9 months ago

This library is not currently maintained, but you can get it to run doing the following:

  1. Add the markdown dependency to your package.json "markdown": "^0.5.0"
  2. Create a cljsjs/markdown.cljs file in your source path
    
    (ns cljsjs.markdown
    (:require ["markdown"  :as markdown]))

(js/goog.exportSymbol "markdown" markdown)


3. Run `npm install` to install the new dependency.

I'm the current hoplon maintainer and this library uses a hoplon fork so the latest hoplon features will be missing.