-
-
Save edbond/50c3849320dc63c43ae7f6d68c0f1148 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Warning] shadow-cljs - failed to load – "module$node_modules$$mui$material$node$ButtonBase$TouchRipple" | |
[Warning] shadow-cljs - failed to load – "module$node_modules$$mui$material$node$ButtonBase$ButtonBase" | |
[Warning] shadow-cljs - failed to load – "module$node_modules$$mui$material$node$ButtonBase$index" | |
[Warning] shadow-cljs - failed to load – "module$node_modules$$mui$material$node$Button$Button" | |
[Warning] shadow-cljs - failed to load – "module$node_modules$$mui$material$node$Button$index" | |
[Error] An error occurred when loading – "com.edbond.dungeons.main.js" | |
(anonymous function) (main.js:1560) | |
Global Code (main.js:1916) | |
[Error] @ | |
@ | |
@ | |
@ | |
@ | |
@ | |
@ | |
@ | |
@ | |
@ | |
@ | |
eval code@ | |
eval@[native code] | |
@http://localhost:8000/js/main.js:495:12 | |
@http://localhost:8000/js/main.js:1558:22 | |
global code@http://localhost:8000/js/main.js:1916:20 | |
(anonymous function) (main.js:1561) | |
Global Code (main.js:1916) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns com.edbond.dungeons.main | |
(:require [reagent.core :as r] | |
[reagent.dom :as rd] | |
[react] | |
[react-dom :refer (ReactDOM)] | |
["@mui/material/Button" :refer (Button)])) | |
(def state | |
(r/atom {})) | |
(defn catalog [] | |
[:div#catalog | |
[:h1 "Dungeons"] | |
[:> Button {:variant :contained} "Hello World"]]) | |
(defn init [] | |
(rd/render [catalog] (.querySelector js/document "#app"))) | |
(init) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "frontend", | |
"version": "0.0.1", | |
"private": true, | |
"devDependencies": { | |
"shadow-cljs": "2.15.10" | |
}, | |
"dependencies": { | |
"@emotion/react": "^11.4.1", | |
"@emotion/styled": "^11.3.0", | |
"@mui/icons-material": "^5.0.1", | |
"@mui/material": "^5.0.1", | |
"react": "^17.0.2", | |
"react-dom": "^17.0.2" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; shadow-cljs configuration | |
{:source-paths | |
["src/dev" | |
"src/main" | |
"src/test"] | |
:dependencies | |
[ | |
[reagent "1.1.0"] | |
] | |
:dev-http {8000 "public"} | |
:builds | |
{ | |
:app { | |
:target :browser | |
:output-dir "public/js" | |
:asset-js "/js" | |
:modules {:main {:entries [com.edbond.dungeons.main]}} | |
} | |
}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment