These are chat archives for chandu0101/scalajs-react-components

19th
Jun 2015
Zach Langbert
@zlangbert
Jun 19 2015 22:00
@chandu0101 Where are you seeing #13 happeneing?
Chandra Sekhar Kode
@chandu0101
Jun 19 2015 22:01
hmm nah , new version is not published yet :) , u must run demo locally
Zach Langbert
@zlangbert
Jun 19 2015 22:02
Ah okay
Chandra Sekhar Kode
@chandu0101
Jun 19 2015 22:04
cd scalajs-react-components
sbt ~fastOptJS

// open new terminal tab

cd demo
npm start 

app is  running at 
http://localhost:8090/webpack-dev-server/
Zach Langbert
@zlangbert
Jun 19 2015 22:08
Hmm, server doesn't want to start
> webpack --watch & webpack-dev-server --progress --colors --port 9001

Hash: 0fa9878e3fdaf1d7b571
Version: webpack 1.9.11
Time: 966ms
                               Asset     Size  Chunks             Chunk Names
6fbbbc13ad67fd22a884c8a4bfc40cd7.png  15.7 kB          [emitted]
386a2e9718c30b5bccde524c62c3a1ed.png  28.4 kB          [emitted]
3bc72bdf4fbc4a96d11692ab56457f01.png  19.4 kB          [emitted]
6257e1ea6dbc295460c6b6a87de886f5.png  34.6 kB          [emitted]
697662f3c070dd557db382939612516b.png    20 kB          [emitted]
04f2917325463ac9bafe2a9ba6102a38.png  27.9 kB          [emitted]
                           bundle.js  1.14 MB       0  [emitted]  main
   [0] multi main 28 bytes {0} [built]
   [1] ./index.js 1.04 kB {0} [built]
 [288] ./js/highlight.pak.js 9.27 kB {0} [built]
    + 296 hidden modules
Just hangs there
Chandra Sekhar Kode
@chandu0101
Jun 19 2015 22:10
ah , if you’re using intellij run index.html , ignore webpack
Zach Langbert
@zlangbert
Jun 19 2015 22:14
Uncaught SecurityError: Failed to execute 'pushState' on 'History': A history state object with URL 'file:///C:/scalajs-react-components/' cannot be created in a document with origin 'null'.
Chandra Sekhar Kode
@chandu0101
Jun 19 2015 22:14
u must run it on server (localhost)
try different port for web pack ,see if that works
Zach Langbert
@zlangbert
Jun 19 2015 22:16
Oh
webpack-dev-server is a seperate package
Chandra Sekhar Kode
@chandu0101
Jun 19 2015 22:16
sorry i mean web pack-dev-server port
Zach Langbert
@zlangbert
Jun 19 2015 22:22
Okay got it. npm start just plain doesn't work, but if I run webpack-dev-server by itself it works. Might have something to do with cygwin, idk
Chandra Sekhar Kode
@chandu0101
Jun 19 2015 22:23
cool , test em ,report issues if you find any :)
Omid Bakhshandeh
@omidb
Jun 19 2015 22:23
mmh, that was the same problem that I had, @chandu0101 do you have a Mac?
Chandra Sekhar Kode
@chandu0101
Jun 19 2015 22:24
yeah i have mac
Zach Langbert
@zlangbert
Jun 19 2015 22:58
For #13, it works corretly if you use iconClassName. This looks like a problem upstream. It's mentioned here: callemall/material-ui#829
Chandra Sekhar Kode
@chandu0101
Jun 19 2015 22:59
wow cool , thanks alot mate :)
Zach Langbert
@zlangbert
Jun 19 2015 23:05
Basically if you use your own element for the icon it won'get the correct height set (needs to be 56px).
Chandra Sekhar Kode
@chandu0101
Jun 19 2015 23:06
ah okay
Zach Langbert
@zlangbert
Jun 19 2015 23:06
So when using MuiSvgIcon in one of those buttons you need to
MuiSvgIcon(style = js.Dynamic.literal(
      height= "56px"
 ))(...)