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

The required namespace "snabbdom" is not available #4

Closed
BorisKourt opened this issue Mar 23, 2023 · 6 comments
Closed

The required namespace "snabbdom" is not available #4

BorisKourt opened this issue Mar 23, 2023 · 6 comments

Comments

@BorisKourt
Copy link
Contributor

I understand that this is related to: cjohansen/dumdom#23

But I am not sure what the current workaround is. I am using shadow-cljs and the rest of the application is in reagent. I am assuming that dumdom is used for rendering the portfolio UI itself?

@cjohansen
Copy link
Owner

Yes, that's right. I'm working on a fix for this. I'm off for the weekend, but this should be handled early next week at the latest.

@cjohansen
Copy link
Owner

I'm not familiar with shadow-cljs, but if you can try running portfolio from git with the sha 4e25bcda2f8577b6ea863c2af892c7217a3dc94a, it should hopefully work.

@BorisKourt
Copy link
Contributor Author

I had to use 6beb9521ef5b0f5a631fe6979530f99915730c51 as deps.edn couldn't resolve the sha above.

Encountering new errors in my current project, will try to isolate in a repro.

@cjohansen
Copy link
Owner

I got it working. A fix is available in 2023.03.28 (...). Make sure you configure shadow correctly, as per https://github.com/cjohansen/portfolio#shadow-cljs

@BorisKourt
Copy link
Contributor Author

BorisKourt commented Mar 27, 2023

It works, thanks.

If someone reads this that also has shadow-cljs run separately from their back-end launched via lein: add classpath:public to the :resource-paths vector of your project.clj. And add the dependency to Portfolio to project.clj.

@cjohansen
Copy link
Owner

Feel free to submit a PR on the Readme if there are more ways to configure this 👍

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