This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-07
Channels
- # babashka (17)
- # beginners (33)
- # calva (9)
- # cider (2)
- # clj-kondo (17)
- # cljs-dev (2)
- # cljsrn (2)
- # clojars (3)
- # clojure (60)
- # clojure-australia (2)
- # clojure-europe (8)
- # clojure-gamedev (5)
- # clojurescript (27)
- # cursive (2)
- # emacs (9)
- # fulcro (8)
- # gratitude (5)
- # lsp (41)
- # malli (3)
- # meander (18)
- # pathom (5)
- # polylith (25)
- # re-frame (17)
- # reagent (1)
- # rewrite-clj (6)
- # shadow-cljs (11)
- # uncomplicate (5)
- # vim (6)
- # web-security (5)
I'm having internal compiler error with react-data-grid . It happens with last shadow-cljs and the previous one. unexpected variable layoutCssVars Node(NAME layoutCssVars): node_modules/react-data-grid/lib/bundle.js:550:4 layoutCssVars, Parent(STRING_KEY layoutCssVars): node_modules/react-data-grid/lib/bundle.js:550:4 layoutCssVars
@ghaskins how do you have multiple set-cookie
headers in a :dev-http
server? not against adding that change just curious how you even get there?
@geraldodev looks like either invalid code or a bug in the closure compiler. can't really say and unfortunately also can't do anything about it
if you search the closure compiler repo for "Unexpected variable" you'll find a bunch of reports. doesn't seem to be a new issue
@thheller I took https://github.com/shadow-cljs/quickstart-browser added react and react-data-grid, changed the version of shadow in package.json to "shadow-cljs": "2.11.23" to pin the exact version, added (:require ["react-data-grid" :default DataGrid]) on the main file and it compiled. I did (js/console.log DataGrid) and it showed the js class on console. I've changed the version to "^2.16.0" and got the internal error message
that unfortunately doesn't help much. I guess you can continue using that older version but downgrading the closure compiler otherwise unfortunately isn't an option
@thheller I've told too early that I've tested on the last one and the previous one, although my 2.15.3 test was messed up by the global shadow-cljs that I had. Version 2.15.3 works, version 2.16.0 does not. I see that 2.15.3 version uses closure-compiler-unshaded v20210505 and 2.16.0 version uses v20211006 compiler
Btw, it's impressive that this project is typescript and babel dependent and I don't have to deal witha any of this, all taken care by shadow-cljs.
@thheller to be clear, the set-cookies are coming from the backend that the dev-http server is proxying. In that case, the backend may sometimes want to set more than one cookie, e.g. in some oauth flows where both OP and RP state is being maintained in cookies