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

using on shadow 2.19.3 #1

Open
henryw374 opened this issue Jun 14, 2022 · 0 comments
Open

using on shadow 2.19.3 #1

henryw374 opened this issue Jun 14, 2022 · 0 comments

Comments

@henryw374
Copy link

Hi,

I don't actually use this template but had my own similar setup.

FYI On upgrading to shadow 2.19.3 I found 2 problems.

  1. devcards do not get rendered . that is bc this fn does not return true https://github.com/bhauman/devcards/blob/master/src/devcards/util/utils.clj#L4 even with compiler opts :devcards true. fix I have for now is to rebind that fn to always return true.

  2. highlight.js npm not being successfully parsed. the reason is that index.js in highlight lib loads all the languages and one of them isbl it has problems with.

a fix is to add following config.

{:js-options {:resolve {"highlight.js" {:target :file :file "node_modules/hightlight.js/lib/core.js"}}}}

That will mean clojure highlighting is not enabled or working though, as by just loading core.js, no languages are registered as they would be in index.js. so... I guess you can also require the languages/clojure.js file and call (.registerLanguage highlight "clojure" clojure.js-file-required) . not tried that last bit yet.

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

1 participant