This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-02
Channels
- # admin-announcements (1)
- # aws-lambda (9)
- # beginners (161)
- # boot (1)
- # cider (3)
- # cljsrn (36)
- # clojure (245)
- # clojure-austin (2)
- # clojure-denmark (3)
- # clojure-dev (11)
- # clojure-greece (6)
- # clojure-italy (25)
- # clojure-russia (5)
- # clojure-serbia (1)
- # clojure-spec (76)
- # clojure-uk (78)
- # clojurescript (168)
- # clojurex (4)
- # community-development (7)
- # core-async (11)
- # core-logic (5)
- # css (6)
- # cursive (8)
- # data-science (6)
- # datomic (5)
- # devops (4)
- # duct (17)
- # emacs (1)
- # figwheel (8)
- # fulcro (51)
- # hoplon (4)
- # instaparse (3)
- # kekkonen (6)
- # klipse (3)
- # lein-figwheel (9)
- # luminus (2)
- # lumo (3)
- # midje (4)
- # off-topic (11)
- # om (4)
- # onyx (62)
- # other-languages (60)
- # re-frame (21)
- # reagent (63)
- # rum (1)
- # shadow-cljs (22)
- # spacemacs (22)
- # specter (23)
- # test-check (2)
- # vim (2)
- # yada (6)
hi good morning, I'm having a error with reagent 8 alpha2
Uncaught ReferenceError: process is not defined
:compiler {:main gecko.core
:output-to "resources/public/js/compiled/app.js"
:output-dir "resources/public/js/compiled/out"
:asset-path "/js/compiled/out"
:npm-deps
{:react "16.0.0"
:react-dom "16.0.0"
:create-react-class "15.6.2"}
:install-deps true
:infer-externs true
:source-map-timestamp true
:closure-defines {goog.DEBUG true}
:preloads [devtools.preload
re-frisk.preload]
:external-config {:devtools/config {:features-to-install :all}}
}
Refer to https://dev.clojure.org/jira/browse/CLJS-2393 for more details
By the way, if you won't add anything else to :npm-deps
and React 15 is enough for you, you don't need :npm-deps
at all.
you could try putting that on top of your index.html
<script>window.process = window.process || {env: {NODE_ENV: "dev"}};</script>
not saying this is a proper solution but it may get you a step further š
[reagent "0.8.0-alpha2" :exclusions [[cljsjs/create-react-class]
[cljsjs/react-dom-server]
[cljsjs/react-dom]
[cljsjs/react]]]
In the migration guide to Reagent 0.8 it's stated that if React is found in node_modules, cljsjs/react
will still be used, but only for externs.
I'm not sure how that works, but maybe that's the problem.
@brunex In #clojurescript it was pointed out that you can just add process.env
as the first preload and leave re-frisk in the list of preloads.
Not sure if has been mentioned here yet (donāt see it), but some reason that I have not tracked down, the āBMI calculatorā on this reagent tutorial page http://reagent-project.github.io/ isnāt working
running the code it shows there locally works though. I believe it used to work on the site too (if I remember correctly). Someone who was just trying to learn reagent pointed this out to me yesterday because they were confused what it was supposed to be doing.
TypeError: Cannot read property 'renderToString' of undefined
at reagent$dom$server$render_to_string
For some reason Range inputs don't trigger onChange events
... on this particular environment and adv build
Demo site is for now built using UMD module, I'll create issue about this and hopefully I can create tests to validate this case