Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NateHerman opened this issue Jan 10, 2024 · 1 comment
Open

Comments

@NateHerman
Copy link

NateHerman commented Jan 10, 2024

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
Copy link

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)
  1. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants