These are chat archives for canjs/canjs

16th
Apr 2017
Mohamed Cherif Bouchelaghem
@cherifGsoul
Apr 16 2017 09:04
hey guys, I want to use masonry layout http://masonry.desandro.com/ with canjs3 but it gives undesired results any idea how to use it with a component which renders a list of items based on promise?
Mohamed Cherif Bouchelaghem
@cherifGsoul
Apr 16 2017 09:44
How I can know that stache rendering is done?
Nico R.
@nriesco
Apr 16 2017 12:22

I'm trying to do some changes in a DefineMap.
I have a working app and tried to disable SSR using done-serve --static --port 8080. It just won't work.

The idea is to solve this issue:

/Users/nriesco/git/riescorp/ozzi-application/node_modules/done-ssr/lib/zones/assets.js:34
          head.insertBefore(node, head.lastChild);
              ^

TypeError: Cannot read property 'insertBefore' of undefined
    at /Users/nriesco/git/riescorp/ozzi-application/node_modules/done-ssr/lib/zones/assets.js:34:10
    at Array.forEach (native)
    at /Users/nriesco/git/riescorp/ozzi-application/node_modules/done-ssr/lib/zones/assets.js:27:24
    at Array.forEach (native)
    at applyPages (/Users/nriesco/git/riescorp/ozzi-application/node_modules/done-ssr/lib/zones/assets.js:23:8)
    at Zone.ended (/Users/nriesco/git/riescorp/ozzi-application/node_modules/done-ssr/lib/zones/assets.js:10:5)
    at /Users/nriesco/git/riescorp/ozzi-application/node_modules/can-zone/lib/zone.js:225:7
    at Array.forEach (native)
    at Zone.execHook (/Users/nriesco/git/riescorp/ozzi-application/node_modules/can-zone/lib/zone.js:224:11)
    at Zone.end (/Users/nriesco/git/riescorp/ozzi-application/node_modules/can-zone/lib/zone.js:252:7)

Is there any way to get real feedback on this type of error?
Thanks

btw: happy Easter to everyone!

Gira Minus
@gKreator
Apr 16 2017 14:31
You said you wanted to disable ssr?
Then just use express to serve ur app
Look at done server source code
Nico R.
@nriesco
Apr 16 2017 19:54
@gKreator shouldn’t done-serve —static do that?
@cherifGsoul that page looks interesting, have you tried that stuff with canjs? what are the undesired results you are having?
Gira Minus
@gKreator
Apr 16 2017 20:51
@nriesco ohh i dont use done-server so i dont know but here is my express script that has ssr that u can disable https://pastebin.com/wCxbhYzz