This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-18
Channels
- # aws (12)
- # beginners (489)
- # calva (32)
- # cider (117)
- # clj-kondo (4)
- # cljdoc (9)
- # cljs-dev (3)
- # clojure (56)
- # clojure-brasil (1)
- # clojure-europe (10)
- # clojure-italy (44)
- # clojure-nl (9)
- # clojure-russia (1)
- # clojure-sweden (6)
- # clojure-uk (64)
- # clojurescript (6)
- # cursive (6)
- # datascript (4)
- # datomic (6)
- # emacs (3)
- # fulcro (15)
- # graalvm (11)
- # jackdaw (7)
- # jobs (8)
- # jobs-discuss (29)
- # jvm (2)
- # leiningen (5)
- # luminus (10)
- # off-topic (23)
- # pathom (21)
- # planck (11)
- # quil (6)
- # re-frame (11)
- # reagent (17)
- # reitit (8)
- # rewrite-clj (6)
- # shadow-cljs (78)
- # slack-help (2)
- # spacemacs (7)
- # specter (4)
- # sql (60)
- # tools-deps (7)
- # xtdb (11)
@richiardiandrea How does your serverless yaml look like?
What is difference between (:require ["module-name" :as module-name])
and (:require ["module-name"])
?
Reference: https://shadow-cljs.github.io/docs/UsersGuide.html#_using_npm_packages
Similar one: (:require ["moment" :as moment])
vs (:require ["moment"])
.
@ahmed1hsn (:require ["moment"])
has no alias so you it will be included in the code but you can't reference it
I have an issue with the building the project in the ci (in docker container). When we build the project it sometimes throws an error
shadow-cljs - dependencies updated
[:app] Compiling ...
IllegalStateException: could not find where to put constant for module goog.structs.map.js
And I am not sure if this is the issue with some gitlab optimizations or with the way we have set up the project. I can reproduce it locally (sometimes), but it is really inconsistent locally and it fixes itself when it breaks like that. We also noticed that removing the .shadow-cljs directory in the pipeline makes this issue happen less often. If anyone can point me in some direction would be cool 🙂yes it is
@dmytro.bunin the only clue I can offer is that that error message is from the part of the code that is supposed to move cljs constants (ie. keywords) to their proper places. in this case it is trying to move into a namespace it isn't supposed to be moved to. dunno why that would happen though since there are no keywords in goog.*
code. it might be that there is a keyword where this is the only common dependency which should also never happen because that is supposed to be cljs.core
.
ie. using (clojure.string/foo ...)
in an ns that doesnt have a (:require [clojure.string ...])
wouldn’t it then consistently fail?
alright, thanks for help, at least there is a direction now to look at
@thheller we've been investigating troubles with the lack of pretty printing of edn in cider's repl with @bozhidar... turns out that the troubles look like shadow-cljs specific
here is what he says about it : You might also open some GitHub issue for @thheller pointing him to https://github.com/nrepl/piggieback/commit/8e0ff8911a1a7ad012dba19d3be6d7c0515d418d and subsequent commits. Changes that had to be done for Piggieback to play well with nREPL 0.6.
I really do not have time to debug cider issues currently so I can only provide minor guidance to where to look maybe
they had to make some changes to piggieback that might not have been reflected in your implementation of it
i have no knowledge of anything, i can cut/paste the nrepl-messages buffer for shadow-cljs (not pretty printing) and figwheel (pretty printing works)
well that doesn't show anything different, only the printed value has new-lines in it for figwheel and not for shadown-cljs
might be related to this https://github.com/nrepl/piggieback/blob/master/src/cider/piggieback.clj#L215-L218
Hi, I’m doing something wrong trying to use a React component but I’m out of ideas. I’m trying to use react-select.
(ns alexandria.views
(:require
["react-select" :default Select]
[reagent.core :as r]
[re-frame.core :as rf]
[re-frame.db :as db]
[alexandria.mapbox :refer [mapbox ]]))
The required JS dependency "react-select" is not available, it was required by "alexandria/views.cljs".
Searched in:/Users/rodfrey/dev/terrapin/alexandria/node_modules
You probably need to run:
npm install react-select
See:
fireplace.vim: Something went wrong: {'status': ['done'], 'id': 'fireplace-MacBook-Pro.hitronhub.home-1560792001-475', 'session': ['ef44ac71-4693-4684-91aa-9673224c2965'], 'err': 'The required JS dependency "react-select" is not available, it was required by "alexandria/views.cljs".^@^@Se
arched in:/Users/rodfrey/dev/terrapin/alexandria/node_modules^@^@You probably need to run:^@ npm install react-select^@^@See:
The maintainer of that package says to import it using import Select from 'react-select';
Because I was being a moron - npm i react-select failed and the author seems to only use yarn. In any event, I changed the package.json entry to "react-select": "^3.0.4"
and cleaned everything out and did npm install
[email protected]: ~/dev/terrapin/alexandria $> ls /Users/rodfrey/dev/terrapin/alexandria/node_modules/react-select/
total 176
-rw-r--r-- 1 rodfrey staff 5.3K Oct 26 1985 README.md
-rw-r--r-- 1 rodfrey staff 75K Oct 26 1985 CHANGELOG.md
drwxr-xr-x 4 rodfrey staff 128B Jun 18 15:15 animated
drwxr-xr-x 4 rodfrey staff 128B Jun 18 15:15 async-creatable
drwxr-xr-x 4 rodfrey staff 128B Jun 18 15:15 async
drwxr-xr-x 4 rodfrey staff 128B Jun 18 15:15 base
drwxr-xr-x 4 rodfrey staff 128B Jun 18 15:15 creatable
drwxr-xr-x 25 rodfrey staff 800B Jun 18 15:15 dist
drwxr-xr-x 21 rodfrey staff 672B Jun 18 15:15 src
-rw-r--r-- 1 rodfrey staff 2.5K Jun 18 15:15 package.json
drwxr-xr-x 12 rodfrey staff 384B Jun 18 15:15 .
drwxr-xr-x 72 rodfrey staff 2.3K Jun 18 15:15 ..
did you try restarting the process? it sometimes gets confused if you mess with node_modules
too much
[email protected]: ~/dev/terrapin/alexandria $> shadow-cljs watch alexandria
shadow-cljs - config: /Users/rodfrey/dev/terrapin/alexandria/shadow-cljs.edn cli version: 2.8.37 node: v11.5.0
shadow-cljs - connected to server
shadow-cljs - watching build :alexandria
[:alexandria] Configuring build.
[:alexandria] Compiling ...
[:alexandria] Build failure:
The required JS dependency "react-select" is not available, it was required by "alexandria/views.cljs".
Searched in:/Users/rodfrey/dev/terrapin/alexandria/node_modules
You probably need to run:
npm install react-select
That was it. Thanks, I feel like a buffoon, but at least I’m a buffoon who’s moving forward
anyone ever seen an issue during development where the JS console outputs a lot of googl.string.isNumeric is not a function
and other seemingly Google Closure issues. The issue is resolved when building for production
this was seen on a co-workers machine who doesn’t normally run this project. we ruled out a lot of differences between our environments, mostly just Node versions, since everything else is declared in project.clj/package.json.