These are chat archives for reactioncommerce/reaction

26th
Apr 2018
Michael Duane Mooring
@mikeumus
Apr 26 2018 00:04
After upgrading to rc1.11.0 I'm getting a white screen rendered with this error:
Uncaught Error: Cannot find module 'http'
Daniel Honig
@dhonig
Apr 26 2018 00:46
@mikeumus sounds like you might want to reset your node_modules directory
or let reaction reset do that for you
Michael Duane Mooring
@mikeumus
Apr 26 2018 00:47
@dhonig, alright, let me try that, http is a core node module right?
Daniel Honig
@dhonig
Apr 26 2018 00:47
too hard to tell wahts going on....but does sound like your environment is not in synch
I get that you wouldn't expect core modules to be reported missing
Andrew Lee
@andrewksl
Apr 26 2018 02:04
thanks, @pnewell4_twitter !
Michael Duane Mooring
@mikeumus
Apr 26 2018 02:26
rc reset y and still getting: Uncaught Error: Cannot find module 'http'
Loan Laux
@loanlaux
Apr 26 2018 08:12

The current stripe connect configuration doesn't use tokens for API requests. Is this intentional?

True, @willmoss1000. Have been wondering as well for a bit of time now. It seems pretty unsecure to me.

Michael Duane Mooring
@mikeumus
Apr 26 2018 08:49
it was the package.json and package-lock.json that was messed up from the git pull :)
snehalps
@snehalps
Apr 26 2018 10:26
is it possible to add location based product searches into reaction commerce just like in olx ...how can i do it? i am a non technical person ...thank you
William Moss
@willmoss1000
Apr 26 2018 11:13
@loanlaux I haven't read enough into it, but stripe are certainly very clear that they should be tokenized. Just wanted to know if this was something to be concerned about / aware of
@snehalps I don't believe that is easily done. To add that feature you'll need to find someone with the technical skills required
snehalps
@snehalps
Apr 26 2018 11:27
@willmoss1000 thank you for the replay ...can you tell me what skills to look for?
zzh1234567
@zzh1234567
Apr 26 2018 12:18
image.png
@yanlinl I modified the swag-shop to compatible to Reaction v1.11.0.
refer to:
//// reactioncommerce/reaction#4149
//// https://www.npmjs.com/package/@reactioncommerce/schemas
zzh1234567
@zzh1234567
Apr 26 2018 13:51
I cant find any product in https://swagproject.reactioncommerce.com/tag/gifts . Is this intentional? @Akarshit
image.png
Michael Duane Mooring
@mikeumus
Apr 26 2018 14:43
My template isn't changing when I choose it from the Product Setting's Template dropdown, what could this mean?
It has a register.js and everything. Here's the custom template here: https://github.com/MassDistributionMedia/rc-ca-blinds/tree/custom-cart_rc1.5.10-0/imports/plugins/custom/product-detail-option
Dan Castellon
@dancastellon
Apr 26 2018 15:14
Hello - Can anyone help point me in the right direction as to how to deploy Reaction to Galaxy?
Daniel Honig
@dhonig
Apr 26 2018 15:24
@mikeumus I'm afraid any change in register.js requires you to either blow awawy the packages collection in Mongo or do a reaction reset -n ( skip deleting modules)
adding a new plugin also will require a reaction reset to install properly
Michael Duane Mooring
@mikeumus
Apr 26 2018 15:32
Thanks again @dhonig for answering. I've reset a couple times. The temple shows up in the Product Setting -> Template drop down
Reading over the docs and comparing to the product-detail-simple theme now
Daniel Honig
@dhonig
Apr 26 2018 15:33
So its working?
Michael Duane Mooring
@mikeumus
Apr 26 2018 15:34
The only rendered evidence of my theme is it showing there in the Product Setting Templates drop down. If I add a className or a div I don't see it show in the render
I don't have to reset for every temple change right I hope ;)
Daniel Honig
@dhonig
Apr 26 2018 15:35
nope
only if you change something in register.js
Michael Duane Mooring
@mikeumus
Apr 26 2018 15:35
K
Daniel Honig
@dhonig
Apr 26 2018 15:35
templates,etc should all refresh on change
Michael Duane Mooring
@mikeumus
Apr 26 2018 15:35
Okay
I don't know if this guide matches what's seen in product-detail-simple:
Michael Duane Mooring
@mikeumus
Apr 26 2018 15:40
Yeah it's using Blaze templates.
@mikeumus that code you were using above does appear to older, Its been awhile since I covered the basics, but you should follow the guides and React path, over the Blaze templates path, though technically both work.
Most folks seem to be following along with the reaction-swag-shop which I believe is very close /if not what has become of the previous BeesKnees tutorial
Michael Duane Mooring
@mikeumus
Apr 26 2018 15:51
I see, yeah I can't find the descrepency yet but I didn't know about the Swag Shop tutorial. I'll check that out next, thanks again @dhonig
Ishmael Nkosikhona Sibisi
@cyber-claws
Apr 26 2018 15:55
Hey guys. Does anyone know how to change the Currency symbol in the email templates. My store is in ZAR but the emails use a USD symbol. Thanks in advanced :smile:
abarnasankar
@abarnasankar
Apr 26 2018 17:46
Hello everyone, how to resolve
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
while running REACTION
Dan Castellon
@dancastellon
Apr 26 2018 18:19
Hi, anyone ever deploy Reaction to Galaxy?
Daniel Honig
@dhonig
Apr 26 2018 18:54
@abarnasankar what phase of work are you at when you get this error?
the answer is the same, specifying max-old-size to be greater than the default of 1.7 GB
but how you do it is different depending upon context
Daniel Honig
@dhonig
Apr 26 2018 19:39
@abarnasankar in docker it is set as a build-arg TOOL_NODE_FLAGS, but this is for meteor only...so it must be set at runtime via the node command line node --max-old-space-size=8192 main.js
abarnasankar
@abarnasankar
Apr 26 2018 20:29
Hi Daniel, thanks for the response. I am trying to run REACTION using reaction run command and got this error
yeah am trying to work through meteor
Can you help me to make changes on the max-old-size ?
Daniel Honig
@dhonig
Apr 26 2018 20:35
@abarnasankar I think meteor is smart enought o make this work
`` NODE_OPTIONS="--max-old-space-size=8192" meteor run --inspect
```
abarnasankar
@abarnasankar
Apr 26 2018 20:36
should i make the change in meteor.js
Daniel Honig
@dhonig
Apr 26 2018 20:37
just try it first, it worked for me, on node 8.9.0
but you may not want 8 gigs
abarnasankar
@abarnasankar
Apr 26 2018 20:39
@dhonig Sure, will try this and keep you posted. Thanks a ton for the tip
abarnasankar
@abarnasankar
Apr 26 2018 20:46
C:\Users\ShankarAnand>meteor run --inspect
C:\Users\ShankarAnand\AppData\Local.meteor\packages\meteor-tool\1.6.1_1\mt-os.windows.x86_64\dev_bundle\bin\node.exe: "--max-old-space-size=8192" is not supported in NODE_OPTIONS
@dhonig I get the above result when i run meteor inspect command
Daniel Honig
@dhonig
Apr 26 2018 20:51
ok
so you might exepriement and try adding it to the command line
I'm not sure there is another way
TOOL_NODE_FLAGS="--max-old-space-size=4096" you can try setting that
abarnasankar
@abarnasankar
Apr 26 2018 20:56
@dhonig setting tool node flags didnt work out, I am getting the same error
Daniel Honig
@dhonig
Apr 26 2018 21:24
for fun I'd just try hackign the start scripts where node.exe is called and setting the flag there
not really a good idea, but I can't think of a better one
you might find an environmental variable that is in the windows start scripts for this purpose though
David Childers
@dchilders21
Apr 26 2018 22:12
hey, doing some research on reaction commerce and trying to go through the plugin tutorial
when I run 'reaction reset' in a new terminal it comes up with an error 'This command does not work while Meteor is running your application. Exit the
running Meteor development server.'
Daniel Honig
@dhonig
Apr 26 2018 22:14
Try manually killing any node processes running and try again
What os Are you on?
David Childers
@dchilders21
Apr 26 2018 22:14
i do, i kill the process and run 'reaction' again
it takes 3-4 min to get reaction back up
i'm on OS X
would 'reaction reset' make the updates quicker?
Dan Castellon
@dancastellon
Apr 26 2018 22:28
For anyone looking to deploy Reaction Commerce to Galaxy, there's an issue right now, with a workaround. Delete your <project_dir>/node_modules/sharp/vendor directory before each deploy. Then deploy just like any other Meteor app. No custom base image needed.
@abarnasankar I think you want a lower value. try: TOOL_NODE_FLAGS="--max-old-space-size=2048" reaction
Esteban Montes
@emontesg
Apr 26 2018 22:41
Screen Shot 2018-04-26 at 16.40.46.png
somebody know some about this problem?
Sophie He
@sophiehe
Apr 26 2018 22:41
The next Reaction Action is on 5/8 at 8am PT! Tune into our livestream, ask our founders anything, and win free Reaction gear. We'll also be giving a live demo of our admin dashboard. Save your spot today: https://getrxn.io/ra-may-2018
Dan Castellon
@dancastellon
Apr 26 2018 22:59
@emontesg try TOOL_NODE_FLAGS="--max-old-space-size=2048" reaction
Harshal Yeole
@harshalyeole-tudip
Apr 26 2018 23:01
@sophiehe Done
Esteban Montes
@emontesg
Apr 26 2018 23:04
@dancastellon Still getting the same error
Dan Castellon
@dancastellon
Apr 26 2018 23:04
Try 1024 instead of 2048?
Esteban Montes
@emontesg
Apr 26 2018 23:19
building take so much time building