This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-18
Channels
- # atom-editor (5)
- # babashka (15)
- # beginners (80)
- # calva (11)
- # cestmeetup (6)
- # chlorine-clover (15)
- # cider (22)
- # circleci (3)
- # clojure (57)
- # clojure-europe (19)
- # clojure-italy (1)
- # clojure-nl (4)
- # clojure-spec (1)
- # clojure-switzerland (1)
- # clojure-uk (88)
- # clojurescript (92)
- # code-reviews (1)
- # cursive (6)
- # data-science (5)
- # datascript (6)
- # datomic (12)
- # events (7)
- # figwheel-main (2)
- # fulcro (55)
- # graalvm (2)
- # helix (6)
- # juxt (6)
- # kaocha (11)
- # luminus (2)
- # off-topic (82)
- # pathom (27)
- # portal (1)
- # re-frame (3)
- # reitit (25)
- # remote-jobs (8)
- # sci (11)
- # shadow-cljs (29)
- # slack-help (2)
- # spacemacs (9)
- # specter (4)
- # sql (9)
- # tree-sitter (1)
- # uncomplicate (1)
- # xtdb (26)
hey all, anyone know what this is ?
Can't find 'shadow.cljs.devtools.cli' as .class or .clj for lein run: please check the spelling.
Syntax error (FileNotFoundException) compiling at (/private/var/folders/z3/xn3w5qfj4cz854tgqrbgl9xc0000gn/T/form-init10942131942141271474.clj:1:126).
Could not locate shadow/cljs/devtools/cli__init.class, shadow/cljs/devtools/cli.clj or shadow/cljs/devtools/cli.cljc on classpath.
Guten Morgen.
I am running into a problem with advanced optimization. I have a project with js and cljs code https://github.com/timrichardt/jsx-cljs-template
> npx shadow-cljs release app
shadow-cljs - config: /Users/tim/jsx-cljs-template/shadow-cljs.edn
[:app] Compiling ...
Closure compilation failed with 3 errors
--- Component.js:2
Cannot import Closure files by path. Use either import goog:namespace or goog.require(namespace)
.... [2 more errors of this type]
This is what the import statements of Component.js
look like.
//
import * as React from "react";
import StateProvider from "./StateProvider";
import { useStateValue } from "./StateProvider";
import defaultState from "./defaultState";
import Example2 from "./Component2";
@joshua.d.horwitz looks like you don't have the thheller/shadow-cljs
dependency declared in project.clj
?
hi. i am having troubles with source maps. devtools in chrome are trying to get them from wrong path, i.e. relative to the current url. it should already be fixed here (https://github.com/thheller/shadow-cljs/issues/747). i am using version 2.10.21. anyone else having this issue?
@matuskmit1 when asking if anyone else is seeing something it is helpful describing what you are actually seeing 😛
when i am on /app/borrow/models/1aabaeb8-c1a5-5c8e-858a-aa0bddf469dd
, devtools try to get the source maps from /app/borrow/models/js/cljs-runtime/better_cond.core.js.map
, instead from /app/borrow/js/cljs-runtime/better_cond.core.js.map
. notice the /models/
part.
my config file is here: https://github.com/leihs/leihs-borrow/blob/mk/feat/booking-calendar/shadow-cljs.edn
looks like :asset-path "js"
is incorrect then? should be :asset-path "/app/borrow/js"
?
no, then i get /app/borrow/models/app/borrow/js/cljs-runtime/better_cond.core.js.map
. besides that everything else works just fine based on my config…
why everything else was working with an incomplete path is another question though, but already happy
the path pretty much is only relevant for source maps and if you use :module-loader
(which you are not)
no #shadow/env either:
===== ERROR =================
Failed to read config file: /Users/tonykay/fulcrologic/ucv/shadow-cljs.edn
[line 86, col 141] No dispatch macro for e.
when it reaches #env or #shadow/env@tony.kay it was caused by a bug in tools.reader
. its already fixed in master just didn't cut a new release yet since I want to finish something else. https://clojure.atlassian.net/projects/TRDR/issues/TRDR-62
you can do #shadow/env ["FOO" "defaultVal"]
so #shadow/env ["FOO" ""]
would be the same behavior as before I think
Hi all!
I am enjoying shadow-cljs these days, but now started running into a problem:
It seems that the compilation result of shadow-cljs compile app
is different from that of shadow-cljs watch app
.
By looking into their behaviour, it seems to me that the compile
result is somehow reverting to some old version, possibly cached somewhere.
Does anybody know of a possible common reason for that?
(Here is my project: https://github.com/scicloj/gorilla-notes/blob/2821701/shadow-cljs.edn)
🙏
(Removing the .shadow-cljs
cache subdirectory does not fix that.)
🌴 Interesting. Removing all the compiled code did fix that. 🌴