These are chat archives for reactioncommerce/reaction

24th
Sep 2017
Hamed
@papmodern
Sep 24 2017 14:42
I'm confused , there is blaze beside react in RC. Why?
Patrick Tavares
@patrick-tavares
Sep 24 2017 14:43
@papmodern RC is in the middle of transitioning from Blaze templates to React components
Hamed
@papmodern
Sep 24 2017 14:44
Oh God :smile:
So I'm trying to create a completely different Template
I've to use React?
even for layouts?
Patrick Tavares
@patrick-tavares
Sep 24 2017 14:46
I would, yes
Hamed
@papmodern
Sep 24 2017 14:49
My main problem is that in the Customization guide , section of layouts, they used Blaze tag in react component. How is it works?
Patrick Tavares
@patrick-tavares
Sep 24 2017 14:50
unfortunately, the Customization guide is already outdated... especially if you are working from the marketplace branch (which will soon be merged to master)
you will need to fall back on React knowledge, along with digging in the RC code, to build your plugins for now
docs are being worked on though
Hamed
@papmodern
Sep 24 2017 14:53
Reaction CLI: 0.12.0
Reaction: 1.4.2
Reaction branch: master
this is my env
but when I look at default-theme the structure is the same
You suggest me witch version/branch good to go?
Patrick Tavares
@patrick-tavares
Sep 24 2017 14:55
most of us are using the marketplace branch since it will be merged very soon and it contains a lot of functionality we all want (ie marketplace, more React, etc)
Hamed
@papmodern
Sep 24 2017 14:55
I see
Patrick Tavares
@patrick-tavares
Sep 24 2017 14:55
if you switch to marketplace you will still need to work through things a bit
however, most of us will be able to better answer questions since we will be on the same branch
Hamed
@papmodern
Sep 24 2017 14:56
Its so nice, Tnx for your help. This chatting area is a really valuable prop :+1:
Patrick Tavares
@patrick-tavares
Sep 24 2017 14:57
no problem and yes it is
Hamed
@papmodern
Sep 24 2017 15:02
What's the marketplace branch for? what is differences?
Patrick Tavares
@patrick-tavares
Sep 24 2017 15:03
it contains the next major updates to RC... marketplace capabilities being the major update (ie multiple vendors, multiple shops, multi-tenancy)
Sebastian Alvarado
@sebasalvarado
Sep 24 2017 15:23
The marketplace branch looks amazing @patrick-tavares
Patrick Tavares
@patrick-tavares
Sep 24 2017 15:24
@sebasalvarado yes, the core RC team and a bunch of community contributors have done an amazing job
I'm just doing my best to learn it so that I can work through my project and contribute to this project where/when I can
Josh Cox
@joshuacox
Sep 24 2017 15:28
@papmodern This react vs blaze is a very common question, I think @zenweasel is working on the next version of the customization guide, perhaps he could point us to some of the plugins he thinks most symbolize the way to go forward. I, for one, found the todo tutorial on the main meteor site especially illuminating as it shows both blaze and react methods which produce largely the same results
Hamed
@papmodern
Sep 24 2017 16:07
@joshuacox Thanks for your directions :+1:
@sebasalvarado Sure it is. But currently I'm very confused to just adapt my html template to reaction :((
Josh Cox
@joshuacox
Sep 24 2017 16:08
@papmodern don't forget to share back if you find more useful stuff, this is certainly a bit of shadowy area and could use some light shed on it
Hamed
@papmodern
Sep 24 2017 16:27
@joshuacox Yea sure I will
Patrick Tavares
@patrick-tavares
Sep 24 2017 16:31
hmm... it looks like guest users get a record added to the users collection in the DB upon first visit. Is this something that gets cleaned up periodically?
Hamed
@papmodern
Sep 24 2017 16:48
did anybody used styleguide
'w' Matcha
@24Megabyte_twitter
Sep 24 2017 16:51
excuse me, am new on react could u please teachme how 2 install it on meteor , I got the error when try to deploy with command deploy
Josh Cox
@joshuacox
Sep 24 2017 16:52
@24Megabyte_twitter although it is a meteor app, are you using the reaction command?
'w' Matcha
@24Megabyte_twitter
Sep 24 2017 16:53
@joshuacox i got error that say error the babel-runtime npm package could not be found in your node_modules
Josh Cox
@joshuacox
Sep 24 2017 16:53
are you using reaction or meteor?
'w' Matcha
@24Megabyte_twitter
Sep 24 2017 16:53
meteor
Josh Cox
@joshuacox
Sep 24 2017 16:53
use reaction not meteor
npm i -g reaction-cli
'w' Matcha
@24Megabyte_twitter
Sep 24 2017 16:54
I can type that command on meteor ?
Josh Cox
@joshuacox
Sep 24 2017 16:54
no
follow the docs here
'w' Matcha
@24Megabyte_twitter
Sep 24 2017 16:55
thx , and only osx can use it ?
Mac Os *
Josh Cox
@joshuacox
Sep 24 2017 16:55
I am on arch linux
works great on ubuntu as well by my testing, though you need a newer node version in most cases
'w' Matcha
@24Megabyte_twitter
Sep 24 2017 16:56
can win10 run on it ?
Josh Cox
@joshuacox
Sep 24 2017 16:56
everyone has problems doing so, and I would NOT recommend it, but it does work great for me under cygwin
'w' Matcha
@24Megabyte_twitter
Sep 24 2017 16:57
thx :D am new on it sry for my stupid question btw
Josh Cox
@joshuacox
Sep 24 2017 16:57
instead use virtual box to install a ubuntu VM or similar and run from there
'w' Matcha
@24Megabyte_twitter
Sep 24 2017 16:57
haha
thxu :D
Josh Cox
@joshuacox
Sep 24 2017 16:59
I also have a dockerized reaction dev environment which I use when npm/node is broken on any OS, I welcome issues at the github repo
I also use the above as a sanity check against my running dev env, just to try different node versions (I tend to use LTS/boron locally, but I have all the major node versions represented in the docker image as tags), and I can easily test a 'fresh' checkout in a ramdisk with make fresh (tmp on my personal systems is usually a ramdisk)
Josh Cox
@joshuacox
Sep 24 2017 17:09
I know one of the recurring themes is performance related, putting the entire reaction directory in a ramdisk certainly speeds things up, also, uncommenting meteorhacks:fast-render in .meteor/packages, any other speed tweaks?
Daniel Honig
@dhonig
Sep 24 2017 17:49
Interesting, I'd love to see how your setting up the ramdisk
The docker setup look slick. I have been wanting to set this up for some time
Josh Cox
@joshuacox
Sep 24 2017 17:52
@dhonig ·> cat /etc/systemd/system/tmp.mount
on some systems I just have a line in fstab like these examples
Daniel Honig
@dhonig
Sep 24 2017 17:53
So you just mount <REACTION_ROOT>
as a ram disk?
Josh Cox
@joshuacox
Sep 24 2017 17:54
in the make fresh example, I just echo /tmp/reaction > REACTION_ROOT before running
'w' Matcha
@24Megabyte_twitter
Sep 24 2017 17:54

A common cause of this error is the presence of a configuration options object without the corresponding preset name. Example:

Invalid:
{ presets: [{option: value}] }
Valid:
{ presets: [['presetName', {option: value}]] }

what happen ?
Josh Cox
@joshuacox
Sep 24 2017 17:56
@24Megabyte_twitter maybe a bit more context?
Josh Cox
@joshuacox
Sep 24 2017 18:02
@dhonig that tmp is a ramdisk is implied and assumed, and perhaps could be done more elegantly, pardon my mess, this is largely a collection of repeated commands in an abuse of a Makefile, it could use some polish
'w' Matcha
@24Megabyte_twitter
Sep 24 2017 18:03

Errors prevented startup:

While processing files with ecmascript (for target web.browser):
C:\Users\Matcha\AppData\Local.meteor\packages\ecmascript\0.8.2\plugin.compile-ecmascript.os\npm\node_modules\meteor\babel-compiler\node_modules\babel-core\lib\transformation\plugin.js:131:13: Plugin 0 specified in "foreign" provided an invalid property of "wrapped"
at Plugin.init (C:\Users\Matcha\AppData\Local.meteor\packages\ecmascript\0.8.2\plugin.compile-ecmascript.os\npm\node_modules\meteor\babel-compiler\node_modules\babel-core\lib\transformation\plugin.js:131:13)
at Function.normalisePlugin (C:\Users\Matcha\AppData\Local.meteor\packages\ecmascript\0.8.2\plugin.compile-ecmascript.os\npm\node_modules\meteor\babel-compiler\node_modules\babel-core\lib\transformation\file\options\option-manager.js:152:12)
at C:\Users\Matcha\AppData\Local.meteor\packages\ecmascript\0.8.2\plugin.compile-ecmascript.os\npm\node_modules\meteor\babel-compiler\node_modules\babel-core\lib\transformation\file\options\option-manager.js:184:30
at Array.map (native)
at Function.normalisePlugins (C:\Users\Matcha\AppData\Local.meteor\packages\ecmascript\0.8.2\plugin.compile-ecmascript.os\npm\node_modules\meteor\babel-compiler\node_modules\babel-core\lib\transformation\file\options\option-manager.js:158:20)
at OptionManager.mergeOptions (C:\Users\Matcha\AppData\Local.meteor\packages\ecmascript\0.8.2\plugin.compile-ecmascript.os\npm\node_modules\meteor\babel-compiler\node_modules\babel-core\lib\transformation\file\options\option-manager.js:234:36)
at C:\Users\Matcha\AppData\Local.meteor\packages\ecmascript\0.8.2\plugin.compile-ecmascript.os\npm\node_modules\meteor\babel-compiler\node_modules\babel-core\lib\transformation\file\options\option-manager.js:265:14
at C:\Users\Matcha\AppData\Local.meteor\packages\ecmascript\0.8.2\plugin.compile-ecmascript.os\npm\node_modules\meteor\babel-compiler\node_modules\babel-core\lib\transformation\file\options\option-manager.js:323:22
at Array.map (native)
at OptionManager.resolvePresets (C:\Users\Matcha\AppData\Local.meteor\packages\ecmascript\0.8.2\plugin.compile-ecmascript.os\npm\node_modules\meteor\babel-compiler\node_modules\babel-core\lib\transformation\file\options\option-manager.js:275:20)
at OptionManager.mergePresets (C:\Users\Matcha\AppData\Local.meteor\packages\ecmascript\0.8.2\plugin.compile-ecmascript.os\npm\node_modules\meteor\babel-compiler\node_modules\babel-core\lib\transformation\file\options\option-manager.js:264:10)
at OptionManager.mergeOptions (C:\Users\Matcha\AppData\Local.meteor\packages\ecmascript\0.8.2\plugin.compile-ecmascript.os\npm\node_modules\meteor\babel-compiler\node_modules\babel-core\lib\transformation\file\options\option-manager.js:249:14)
at OptionManager.init (C:\Users\Matcha\AppData\Local.meteor\packages\ecmascript\0.8.2\plugin.compile-ecmascript.os\npm\node_modules\meteor\babel-compiler\node_modules\babel-core\lib\transformation\file\options\option-manager.js:368:12)
at File.initOptions (C:\Users\Matcha\AppData\Local.meteor\packages\ecmascript\0.8.2\plugin.compile-ecmascript.os\npm\node_modules\meteor\babel-compiler\node_modules\babel-core\lib\transformation\file\index.js:212:65)
at new File (C:\Users\Matcha\AppData\Local.meteor\packages\ecmascript\0.8.2\plugin.compile-ecmascript.os\npm\node_modules\meteor\babel-compiler\node_modules\babel-core\lib\transformation\file\index.js:135:24)
at Pipeline.transformFromAst (C:\Users\Matcha\AppData\Local.meteor\packages\ecmascript\0.8.2\plugin.compile-ecmascript.os\npm\node_modules\meteor\babel-compiler\node_modules\babel-core\lib\transformation\pipeline.js:69:16)
at transform (C:\Users\Matcha\AppData\Local.meteor\packages\ecmascript\0.8.2\plugin.compile-ecmascript.os\npm\node_modules\meteor\babel-compiler\node_modules\meteor-babel\index.js:53:30)
at compile (C:\Users\Matcha\AppData\Local.meteor\packages\ecmascript\0.8.2\plugin.compile-ecmascript.os\npm\node_modules\meteor\babel-compiler\node_modules\meteor-babel\index.js:64:14)
at Cache.Cp.get (C:\Users\Matcha\AppData\Local.meteor\package

Daniel Honig
@dhonig
Sep 24 2017 18:03
@24Megabyte_twitter can you make use of a gist or encode in CONTENT
so that its formatted properly
;)
'w' Matcha
@24Megabyte_twitter
Sep 24 2017 18:04
sorry bro :<
Josh Cox
@joshuacox
Sep 24 2017 18:04
well I meant tell us what you were doing, you might paste that into a gist (jinx @dhonig ), was that during reaction init?
'w' Matcha
@24Megabyte_twitter
Sep 24 2017 18:05
yess
Josh Cox
@joshuacox
Sep 24 2017 18:05
what version of npm and node are you using?
npm -v 3.10.10
node -v v6.11.3
'w' Matcha
@24Megabyte_twitter
Sep 24 2017 18:06
6.11.3
Josh Cox
@joshuacox
Sep 24 2017 18:07
I would try inside a VM, do you have virtualBox, or docker toolbox installed?
Daniel Honig
@dhonig
Sep 24 2017 18:08
we have some work to do I think to get a simple recipe that works well for Windows. Some kind of virtualization is your best bet anyways
'w' Matcha
@24Megabyte_twitter
Sep 24 2017 18:09
i didn't try on vm , now i currently install on it.
Josh Cox
@joshuacox
Sep 24 2017 18:12
^yep. and the endgame with reaction is all in the reaction build $mycustom_name which produces a docker image, so you will want docker working as well, easiest is to just get it done in a simple VM at first and skip all the GUIs in windows. But that being said, there are some nice GUIs these days for all this, you might start here, @dhonig you had mentioned chocolatey which is also very interesting
Daniel Honig
@dhonig
Sep 24 2017 18:27
Is there a kitematic version of reaction yet?
Josh Cox
@joshuacox
Sep 24 2017 18:57
While I don't believe so, there is no reason that the latest image shouldn't work, I made a template for the rancher community-catalog using that and it does fine as a demo. I, also, have one that is what I use for 'production' at the moment here. Though, I am not very happy with the performance and would love to collaborate on something in regards to production. I know @aaronjudd had mentioned that perhaps there was some secret sauce kubernetes templates that they had going.
IgorZh
@IgorZh
Sep 24 2017 19:26
Hi. How I can change template property in coreLayout. I need to use another template instead of product
'w' Matcha
@24Megabyte_twitter
Sep 24 2017 19:28
how do i acesss to dashboard now i can runiing app but when i access 2 localhost:3000 ot nothing happen
'w' Matcha
@24Megabyte_twitter
Sep 24 2017 19:43
or i need to apply templete first?
Hamed
@papmodern
Sep 24 2017 19:56
Is there any way to take a look at latest docs?
Josh Cox
@joshuacox
Sep 24 2017 20:03
@papmodern there is a selector in the upper right that changes branch this results in following URI for 1.4.1 and master
Hamed
@papmodern
Sep 24 2017 20:28
yep I tried that, but the docs of marketplace was the same with master
Hamed
@papmodern
Sep 24 2017 20:52
God it takes about 30 minutes to run :-|
Daniel Honig
@dhonig
Sep 24 2017 20:52
First time only
Hamed
@papmodern
Sep 24 2017 20:53
I'm developing plugins and I have to run reaction reset for changes apply. So I need much more first time builds :'(
Daniel Honig
@dhonig
Sep 24 2017 20:53
I'm developing plugins as well. I haven't needed to run reaction reset all the time
What you can do instead is login to mongo and delete the packages collection
reaction will rebuild it on restart
Patrick Tavares
@patrick-tavares
Sep 24 2017 21:09
bumping my previous question. It looks like guests get anonymous user accounts created within RC. Is this so users can purchase products without having to create an account and/or login? Are these cleaned up periodically or will they hang around indefinitely in Mongo?
Daniel Honig
@dhonig
Sep 24 2017 21:39
@patrick-tavares you would to have some kind of job to purge the users
I'm not sure that exists out of the box, but it would be easy to code up and have executed by the Job-control library that already is integrated
Patrick Tavares
@patrick-tavares
Sep 24 2017 21:42
@dhonig that's what it's looking like. I wonder what the reasoning is for this. I would be interested to hear @jshimko, @spencern, or @zenweasel comment on this
Daniel Honig
@dhonig
Sep 24 2017 21:42
yes
I'm not aware of anything in the out of the box code that does that
dquiroga
@dquiroga
Sep 24 2017 22:46
Hi!! sorry but I can't start raction. I have this message "Allocation failed - process out of memory"
Someone knows how can i set memory limit var?
Josh Cox
@joshuacox
Sep 24 2017 22:46
@dquiroga what platform? version of reaction? node?
when I see this message I just try reaction again and it works most of the time
I do get this message pretty consistently under 1.4.2 though
I've got a forum post on the topic as well
dquiroga
@dquiroga
Sep 24 2017 22:49
@joshuacox Thanks for your answers!! My reaction enviroments
v
Node: 5.0.0
NPM: 3.3.6
Meteor Node: 4.8.4
Meteor NPM: 4.6.1
Reaction CLI: 0.12.0
Reaction: 1.4.2
Reaction branch: master
Josh Cox
@joshuacox
Sep 24 2017 22:51
you might git checkout v1.4.1 or git checkout marketplace the latter is interesting as the team is actively working on releasing that branch next and will include multitenant features.
dquiroga
@dquiroga
Sep 24 2017 22:52
OK!!!
I will try change the branch
Thanks a lot @joshuacox !!!
Josh Cox
@joshuacox
Sep 24 2017 22:52
you bet