This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-24
Channels
- # aleph (1)
- # announcements (22)
- # atom-editor (11)
- # babashka (46)
- # beginners (60)
- # calva (44)
- # cider (18)
- # circleci (1)
- # cljdoc (12)
- # cljs-dev (5)
- # cljsrn (19)
- # clojars (3)
- # clojure (162)
- # clojure-dev (9)
- # clojure-europe (6)
- # clojure-italy (2)
- # clojure-losangeles (2)
- # clojure-nl (5)
- # clojure-spec (7)
- # clojure-uk (23)
- # clojureremote (1)
- # clojurescript (55)
- # community-development (14)
- # core-async (234)
- # cursive (14)
- # data-science (3)
- # datomic (32)
- # fulcro (5)
- # graalvm (20)
- # graphql (2)
- # hugsql (4)
- # jobs (11)
- # jobs-discuss (2)
- # joker (1)
- # juxt (3)
- # kaocha (1)
- # luminus (1)
- # off-topic (33)
- # pathom (3)
- # pedestal (1)
- # reagent (24)
- # remote-jobs (3)
- # shadow-cljs (38)
- # spacemacs (4)
- # specter (4)
- # speculative (54)
- # tools-deps (62)
- # vim (8)
- # vscode (14)
wow didnt knew about this: (shadow/nrepl-select :app)
selecting app directly from repl
@thheller was attempting to update the codebase I had again
I had a case with multi-modules there a lazy module failed to load unless I set :output-wrapper false
when updating shadow-cljs
from 2.8.67
to 2.8.68
(this release included a commit saying "make `:output-wrapper` for multi-module builds as well")
tracing the error I saw that shadow wrapper for a npm dependency would throw when using defineProperty
on export
the debugger shows that the properties were already there
lemme try to get a screenshot of the debugger...
the npm package in question is called emoji-mart
is this worth opening an issue for or is it known to happen?
in case it's relevant, we import it thus:
(:require
[reagent.core :as r]
["emoji-mart/data/all.json" :as emoji-data]
["emoji-mart" :as emoji-mart])
:output-wrapper
causing problems is known. dunno about the exports thing, never seen that before
is it known to cause problems if it's true or false? or both 😄
it is causing problems in some cases since making the default true
... but it is also known to fix other problems since making the default true
. Can't win with this JS mess 😛
I'll add these details in https://github.com/thheller/shadow-cljs/issues/611, it's the closes issue I could find
thank you
there was a blog post a few months ago about i18n I’m looking for. what I’m really looking for is an example of storing global state inside of the analyzer
like that https://github.com/thheller/cljs-i18n-api/blob/master/src/cljs/i18n.clj#L56 ?
note that you can only write safely to the namespace that is currently getting compiled
you must never reach into other namespaces or the entire things will fail when caching is involved
so whats a good name for something that sits inbetween the frontend (ui) and backend (server) and handles their interaction?
in my framework thing all non-ui code runs in a webworker but that should be optional. so calling everything worker seems weird 😛
Should this happen?
➜ new-app npx shadow-cljs node-repl
npx: installed 90 in 2.668s
shadow-cljs - config: /Users/kamuela/Code/new-app/shadow-cljs.edn cli version: 2.8.83 node: v12.14.1
shadow-cljs - connected to server
cljs.user=> no "source-map-support" (run "npm install source-map-support --save-dev" to get it)
SHADOW import error /Users/kamuela/Code/new-app/.shadow-cljs/builds/node-repl/dev/out/cljs-runtime/shadow.js.shim.module$ws.js
[stdin]:66
throw e;
^
Error: Cannot find module 'ws'
Require stack:
- /Users/kamuela/Code/new-app/[stdin]
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17)
at Function.Module._load (internal/modules/cjs/loader.js:686:27)
at Module.require (internal/modules/cjs/loader.js:848:19)
at require (internal/modules/cjs/helpers.js:74:18)
at /Users/kamuela/Code/new-app/.shadow-cljs/builds/node-repl/dev/out/cljs-runtime/shadow.js.shim.module$ws.js:3:28
at global.SHADOW_IMPORT ([stdin]:63:44)
at [stdin]:2258:1
at [stdin]:2266:3
at Script.runInThisContext (vm.js:116:20)
at Object.runInThisContext (vm.js:306:38) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/Users/kamuela/Code/new-app/[stdin]' ]
}