These are chat archives for reactioncommerce/reaction

31st
Oct 2017
FinnFrotscher
@FinnFrotscher
Oct 31 2017 00:06
does reaction have an option for advanced variants?
more then color, for example I have a product that incorporates height, width and weight. is that possible out of the box?
Erik Kieckhafer
@kieckhafer
Oct 31 2017 00:28
@FinnFrotscher The schema for all variants is the same, so yes, you can add height, weight, width, etc, to both top-level and option-level variants
you can extend this React component to show more of the fields that you want to show in the dashboard: https://github.com/reactioncommerce/reaction/blob/master/imports/plugins/included/product-variant/components/variantForm.js#L577
Patrick Newell
@pnewell4_twitter
Oct 31 2017 00:35
@dhonig ahem... I think you mean the Rent the Runway style of subscription business!
ukomiljon
@ukomiljon
Oct 31 2017 00:48
I tired:
~/reaction$ reaction
/usr/bin/env: ‘node’: No such file or directory
reaction init myproject
/usr/bin/env: ‘node’: No such file or directory
How can I install and run locally?
sorry, not tired, I tried
ukomiljon
@ukomiljon
Oct 31 2017 00:55
eve I did it on new installed linux Ubuntu 16.04 LTS
even I did it on new installed linux Ubuntu 16.04 LTS
Daniel Honig
@dhonig
Oct 31 2017 00:59
That error indicates that node is not installed
node --version
v8.2.1
I would assume sudo apt-get install node
should fix that
FinnFrotscher
@FinnFrotscher
Oct 31 2017 01:00
@kieckhafer does reaction allow for a complete rewrite of the variants? i am going for something like this:
image.png
its basically an accordion with a variety of interdependent options
Daniel Honig
@dhonig
Oct 31 2017 01:16
Sure but does that make sense to have in the admin?
or are you looking to do this on the user facing area?
Austin
@Elektro1776
Oct 31 2017 01:40
Howdy folks, just getting snuggled up to the docs for reaction, and currently walking through the initial customization walkthrough. Curious is there any way to speed up the build ? it looks like it runs some migrations 0->17 and seems like that is what takes so long ? Any insight is greatly appreciated :)
Daniel Honig
@dhonig
Oct 31 2017 01:41
So that's only the initial load time, loading of seed data also contributes, not just migrations
Brent Hoover
@zenweasel
Oct 31 2017 01:42
The migrations only run one time so it’s unlikely that’s the issue.
Daniel Honig
@dhonig
Oct 31 2017 01:43
the speed of the docker build though is another issue ;)
Brent Hoover
@zenweasel
Oct 31 2017 01:45
For me locally on a fairly recent MacBook I see a rebuild time of about 10-15 seconds. On slower machines you will see longer rebuild times.
Austin
@Elektro1776
Oct 31 2017 01:50
I was specifically talking to when i need to add a plugin , i have to run the reaction reset -n command then start the server again and that takes flippin forever... lulz
Daniel Honig
@dhonig
Oct 31 2017 01:54
So one thing I've done to avoid that, is to login with Robomongo, delete the packages collection and then it will rebuild the registry. YMMV but it worked pretty well for me
Brent Hoover
@zenweasel
Oct 31 2017 02:10
Yeah, ^^ that’s a solid suggestion. We need to add a reaction reset-registry command or something to do that
Austin
@Elektro1776
Oct 31 2017 02:11
That would be sweeeet ^^
Daniel Honig
@dhonig
Oct 31 2017 02:38
Someday I swear I'm going to integrate jake with reaction
then these things don't have to depend on having reaction commands
Brent Hoover
@zenweasel
Oct 31 2017 02:40
the tricky part is that Meteor needs to be running for us to do something like reaction reset-registry
Daniel Honig
@dhonig
Oct 31 2017 02:40
the meteor environment
Brent Hoover
@zenweasel
Oct 31 2017 02:40
so it would have to be something that sets a flag and then gets called on startup
Daniel Honig
@dhonig
Oct 31 2017 02:40
interesting to see how much really needs to be running
Brent Hoover
@zenweasel
Oct 31 2017 02:41
probably not much of reaction per-se, just Meteor
Daniel Honig
@dhonig
Oct 31 2017 02:41
right
Brent Hoover
@zenweasel
Oct 31 2017 02:41
it could just be a beforeCoreInit hook
hitachi19
@hitachi19
Oct 31 2017 03:54

when i install reaction,when i run " sudo reaction init",the console report Cloning the master branch of Reaction from Github...
Cloning into 'reaction'...

Installing NPM packages...
npm ERR! code 1
npm ERR! Command failed: /usr/bin/git clone -q git://github.com/reactioncommerce/transliteration.git git-clone-52f1acf2
npm ERR! /home/ryg/.npm/_cacache/tmp/git-clone-52f1acf2/.git: Permission denied
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR! /home/ryg/.npm/_logs/2017-10-31T03_49_35_901Z-debug.log

Error: Node modules were not successfully installed. Exiting.

why?

g@vultr:~$ sudo reaction init

Cloning the master branch of Reaction from Github...
Cloning into 'reaction'...

Installing NPM packages...
npm ERR! code 1
npm ERR! Command failed: /usr/bin/git clone -q git://github.com/reactioncommerce/transliteration.git git-clone-52f1acf2
npm ERR! /home/ryg/.npm/_cacache/tmp/git-clone-52f1acf2/.git: Permission denied
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR! /home/ryg/.npm/_logs/2017-10-31T03_49_35_901Z-debug.log

Error: Node modules were not successfully installed. Exiting.

why?
Brent Hoover
@zenweasel
Oct 31 2017 03:58
You shouldn't be using sudo
hitachi19
@hitachi19
Oct 31 2017 03:58
i will try,thanks!
ukomiljon
@ukomiljon
Oct 31 2017 04:48
you are right, node was not installed
Daniel Honig
@dhonig
Oct 31 2017 04:48
cool. we are on the way
ukomiljon
@ukomiljon
Oct 31 2017 04:48
i tried this only before sudo apt-get install nodejs
then
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install nodejs
it worked, thanks, but

reaction

Using settings file at settings/dev.settings.json

Setting up plugin imports...

Installing dependencies for connectors-shopify...

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN reaction-connectors-shopify@1.0.0 No repository field.

up to date in 0.095s
Setting up style imports...

[[[[[ ~/reaction ]]]]]

=> Started proxy.
=> Meteor 1.6 is available. Update this project with 'meteor update'.
=> Started MongoDB.
cfs:tempstore: updating npm dependencies -- combined-stream...
cfs:gridfs: updating npm dependencies -- mongodb, gridfs-stream...

Unable to resolve some modules:

"airbnb-prop-types" in
/home/gpuguy/reaction/node_modules/react-dates/lib/components/SingleDatePickerInput.js
(web.browser)
"is-touch-device" in
/home/gpuguy/reaction/node_modules/react-dates/lib/components/SingleDatePicker.js
(web.browser)
"consolidated-events" in
/home/gpuguy/reaction/node_modules/react-dates/lib/components/SingleDatePicker.js
(web.browser)
"react-portal" in
/home/gpuguy/reaction/node_modules/react-dates/lib/components/SingleDatePicker.js
(web.browser)
"react-moment-proptypes" in
/home/gpuguy/reaction/node_modules/react-dates/lib/components/DayPickerSingleDateController.js
(web.browser)
"object.assign" in
/home/gpuguy/reaction/node_modules/react-dates/lib/components/DayPickerSingleDateController.js
(web.browser)
"object.values" in
/home/gpuguy/reaction/node_modules/react-dates/lib/components/DayPickerSingleDateController.js
(web.browser)
"deep-equal" in
/home/gpuguy/reaction/imports/plugins/core/router/client/browserRouter.js
(web.browser)

If you notice problems related to these missing modules, consider running:

meteor npm install --save airbnb-prop-types is-touch-device
consolidated-events react-portal react-moment-proptypes object.assign
object.values deep-equal

<--- Last few GCs --->

451184 ms: Scavenge 1391.5 (1455.3) -> 1391.5 (1455.3) MB, 8.2 / 0 ms (+ 0.9 ms in 1 steps since last GC) [allocation failure] [incremental marking delaying mark-sweep].
452456 ms: Mark-sweep 1391.5 (1455.3) -> 1385.7 (1455.3) MB, 1272.0 / 0 ms (+ 3.2 ms in 2 steps since start of marking, biggest step 2.3 ms) [last resort gc].
453689 ms: Mark-sweep 1385.7 (1455.3) -> 1391.7 (1455.3) MB, 1233.4 / 0 ms [last resort gc].

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x18d563637399 <JS Object>
1: _parseMappings(aka SourceMapConsumer_parseMappings) [/home/gpuguy/.meteor/packages/meteor-tool/.1.5.2_2.1ohp9t2.f8cpk++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/source-map/lib/source-map-consumer.js:~422] [pc=0x359b3259d98] (this=0x30771a2baaa9 <a BasicSourceMapConsumer with map 0x3b0fe2eb46d9>,aStr=0x2cd757bc92f9 <Very long string[5051]>,aSou...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
Aborted (core dumped)

where I my did wrong, i followed all requirements
Daniel Honig
@dhonig
Oct 31 2017 04:53
export TOOL_NODE_FLAGS="--max-old-space-size=4096"
try that
also run this first
meteor npm install --save airbnb-prop-types is-touch-device
shahid
@shahid05688708_twitter
Oct 31 2017 05:03
How can i fetch and show tables record in reaction commerce?
ukomiljon
@ukomiljon
Oct 31 2017 05:14
thanks, it runs

=> Started your app.

=> App running at: http://localhost:3000/

Daniel Honig
@dhonig
Oct 31 2017 05:14
Cool have fun...I'm off to sleepf or a bit
ukomiljon
@ukomiljon
Oct 31 2017 05:14
but, it's empty on browser, I am using firefox
Daniel Honig
@dhonig
Oct 31 2017 05:14
check in the developer console/firebug for any errors
ukomiljon
@ukomiljon
Oct 31 2017 05:14
ok, have a rest
ok, thanks

:~/reaction$ reaction

Using settings file at settings/dev.settings.json

Setting up plugin imports...

Installing dependencies for connectors-shopify...

npm WARN reaction-connectors-shopify@1.0.0 No repository field.
Setting up style imports...

[[[[[ ~/reaction ]]]]]

=> Started proxy.
=> Meteor 1.6 is available. Update this project with 'meteor update'.
=> Started MongoDB.

Unable to resolve some modules:

"deep-equal" in
/home/gpuguy/reaction/imports/plugins/core/router/client/browserRouter.js
(web.browser)

If you notice problems related to these missing modules, consider running:

meteor npm install --save deep-equal

Note: you are using a pure-JavaScript implementation of bcrypt.
While this implementation will work correctly, it is known to be
approximately three times slower than the native implementation.
In order to use the native implementation instead, run

meteor npm install --save bcrypt

in the root directory of your application.
05:12:11.751Z INFO Reaction: Load default data from /private/data/
05:12:11.920Z INFO Reaction: JobServer started
05:12:11.932Z WARN Reaction: Skipped loading settings from reaction.json.
05:12:14.385Z INFO Reaction: Reaction Version: 1.5.5
05:12:14.522Z WARN Reaction: OpenExchangeRates API not configured. Not adding fetchRates job
05:12:14.528Z WARN Reaction: OpenExchangeRates API not configured. Not adding flushRates job
05:12:15.078Z INFO Reaction: Reaction initialization finished.
=> Started your app.

=> App running at: http://localhost:3000/

Erik Kieckhafer
@kieckhafer
Oct 31 2017 05:38
@FinnFrotscher Yes, you can do anything you’d like! I’d start by looking into using our replaceComponentfunctionality to replace the ChildVariant component here: https://github.com/reactioncommerce/reaction/blob/master/imports/plugins/included/product-detail-simple/client/components/childVariant.js#L9
you can get started with replaceComponent with these docs: https://docs.reactioncommerce.com/reaction-docs/master/components-api
Emem Umoh
@ememumoh
Oct 31 2017 05:49
@ukomiljon do you have a visual of the your site? or is it blank?
@ukomiljon Please is your workstation a windows system?
ukomiljon
@ukomiljon
Oct 31 2017 06:24
it is blank
virtual machine Linux Ybuntu 16.04 LTS
oh sorry, Ubuntu 16.04 LTS

:~/reaction$ reaction

Using settings file at settings/dev.settings.json

Setting up plugin imports...

Installing dependencies for connectors-shopify...

npm WARN reaction-connectors-shopify@1.0.0 No repository field.
Setting up style imports...

[[[[[ ~/reaction ]]]]]

=> Started proxy.
=> Meteor 1.6 is available. Update this project with 'meteor update'.
=> Started MongoDB.

Unable to resolve some modules:

"deep-equal" in
/home/gpuguy/reaction/imports/plugins/core/router/client/browserRouter.js
(web.browser)

If you notice problems related to these missing modules, consider running:

meteor npm install --save deep-equal

Note: you are using a pure-JavaScript implementation of bcrypt.
While this implementation will work correctly, it is known to be
approximately three times slower than the native implementation.
In order to use the native implementation instead, run

meteor npm install --save bcrypt

in the root directory of your application.
05:47:47.585Z INFO Reaction: Load default data from /private/data/
05:47:47.701Z INFO Reaction: JobServer started
05:47:47.714Z WARN Reaction: Skipped loading settings from reaction.json.
05:47:49.611Z INFO Reaction: Reaction Version: 1.5.5
05:47:49.713Z WARN Reaction: OpenExchangeRates API not configured. Not adding fetchRates job
05:47:49.720Z WARN Reaction: OpenExchangeRates API not configured. Not adding flushRates job
05:47:50.089Z INFO Reaction: Reaction initialization finished.
=> Started your app.

=> App running at: http://localhost:3000/

virual machine Ubuntu 16.04 LTS on Windows 10
ukomiljon
@ukomiljon
Oct 31 2017 06:43
but, its blank on Browser Firefox
Wayann
@wayann
Oct 31 2017 07:41
@zenweasel I’ve a mbp pro 16Gb ram 500Gb SSD running on OSX high Sierra using latest Chrome and Safari as test browser but I don’t think is the machine the culprit…. I rather think it’s my node install what version of node runs better on reaction?
MichaelF77
@MichaelF77
Oct 31 2017 07:43
@loanlaux I sent you email about a week ago, any chance we can chat someplace?
Emem Umoh
@ememumoh
Oct 31 2017 08:09

@ukomiljon please run the following commands and you will fine: meteor npm install --save deep-equal

meteor npm install --save bcrypt

meteor npm install -- core-js@2.5.1

sorry the last one should be: npm install core-js NOT meteor npm install -- core-js@2.5.1 please take note.
Emem Umoh
@ememumoh
Oct 31 2017 08:14

@ukomiljon install: (1) meteor npm install --save deep-equal

(2) meteor npm install --save bcrypt

(3) npm install core-js

ukomiljon
@ukomiljon
Oct 31 2017 08:16
ok
(1)
~$ sudo meteor npm install --save deep-equal
[sudo] password for gpuguy:
npm WARN saveError ENOENT: no such file or directory, open '/home/gpuguy/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/home/gpuguy/package.json'
npm WARN gpuguy No description
npm WARN gpuguy No repository field.
npm WARN gpuguy No README data
npm WARN gpuguy No license field.
it needs inside reaction folder to run
?
ukomiljon
@ukomiljon
Oct 31 2017 09:01
npm 5.4.2, nodejs v8.8.1, meteor 1.6 was installed
may it any compatibility with version between them
for reaction
?
npm --version
5.4.2
nodejs --version
v8.8.1
meteor --version
Meteor 1.6
ukomiljon
@ukomiljon
Oct 31 2017 09:10
Guys finally reaction run
we fix it with: npm init
where we found: visionmedia/debug#466
then:

(1) meteor npm install --save deep-equal

(2) meteor npm install --save bcrypt

(3) npm install core-js

it works, after npm init
so, reaction runs locally now
thanks a lot to all
:)
Emem Umoh
@ememumoh
Oct 31 2017 09:45
@ukomiljon Cool!!!
ukomiljon
@ukomiljon
Oct 31 2017 10:06
is it initial reaction web displays on the top reaction, multi language, multi currency, login
?
but on documentation it shoes more
features
it displays more features on the docmentation
how can I enable these complete features on reaction?
shahid
@shahid05688708_twitter
Oct 31 2017 10:16
How can I fetch data and show data on HTML pages
roboto-cloud
@roboto-cloud
Oct 31 2017 11:22

Hi, someone know how improve the page load performance?
I'm using docker, and here is the chrome audits.... very poor as can see...

https://discourse-cdn-sjc1.com/business/uploads/reactioncommerce/original/1X/dd68d9fbf8f26e1473fc9c9b0070e5541d90b8f2.png

FinnFrotscher
@FinnFrotscher
Oct 31 2017 13:53
@kieckhafer I am not looking to do it myself. do you know a freelancer who is familiar with the software could take up the job?
Gabriel L. Maljkovich
@glmaljkovich
Oct 31 2017 14:33
Hi everyone, I've been following this guide but I don't see any changes in my product detail page. Do I need to change any route or additional template to make it work? https://docs.reactioncommerce.com/reaction-docs/master/reaction-product-detail
Sophie He
@sophiehe
Oct 31 2017 15:06
Hi everyone! We just announced our $8.5 million Series A led by GV (formerly Google Ventures). Plus, we launched marketplace capabilities earlier this month! Visit our blog to learn more: http://getrxn.io/2yOEipT
Santiago Botta
@sgobotta
Oct 31 2017 15:07
Awesome, grats!
Gabriel L. Maljkovich
@glmaljkovich
Oct 31 2017 15:08
Great news!
José Luis Di Biase
@josx
Oct 31 2017 15:08
great!
prosf
@prosf
Oct 31 2017 15:09
Congratulations guys !
ukomiljon
@ukomiljon
Oct 31 2017 15:11
Congratulations!
Daniel Honig
@dhonig
Oct 31 2017 15:20
@glmaljkovich if you changing register.js you will need to do reaction reset
Gabriel L. Maljkovich
@glmaljkovich
Oct 31 2017 15:22
@dhonig I didn't change register.js, that's why I'm asking if there are extra steps needed besides whats on that guide. Anyway, I ran reaction reset and didn't see any changes.
Daniel Honig
@dhonig
Oct 31 2017 15:31
if your not changing register.js then you shouldn't have to use reaction reset
S Tunji Turner
@stunjiturner
Oct 31 2017 16:20
Awesome announcement
Daniel Honig
@dhonig
Oct 31 2017 16:25
Its great.
Patrick Newell
@pnewell4_twitter
Oct 31 2017 16:25
🔥🔥🔥
Brent Hoover
@zenweasel
Oct 31 2017 16:26
possibly relevant to this space as well, we’re hiring
Patrick Newell
@pnewell4_twitter
Oct 31 2017 16:26
haha. 👏
Erik Kieckhafer
@kieckhafer
Oct 31 2017 16:35
@FinnFrotscher Head over to our forums and make a post using the Jobs (help available/wanted) tag
Fulbert
@Fulbert
Oct 31 2017 17:01
Hello
Daniel Honig
@dhonig
Oct 31 2017 17:10
Hello @Fulbert welcome
Gabriel L. Maljkovich
@glmaljkovich
Oct 31 2017 17:46
@dhonig Thanks, good to know. I still haven't been able to get a custom product template showing though. https://docs.reactioncommerce.com/reaction-docs/master/reaction-product-detail
Daniel Honig
@dhonig
Oct 31 2017 17:47
@glmaljkovich let me get a minute slammed at the moment, perhaps I can share some sample code when I get some time
machiko
@machikoyasuda
Oct 31 2017 18:01
Anyone trying to work with Meteor 1.6 + Reaction? Tracking bugs here https://github.com/reactioncommerce/reaction/issues/3207#issuecomment-340849004
Gabriel L. Maljkovich
@glmaljkovich
Oct 31 2017 18:03
@dhonig Thanks Daniel, that would be awesome!
MichaelF77
@MichaelF77
Oct 31 2017 20:02
am I remembering correctly that there is a plan to switch to React rendering instead of Blaze ?
Brent Hoover
@zenweasel
Oct 31 2017 21:00
@MichaelF77 You are correct. That switch is almost complete
Emem Umoh
@ememumoh
Oct 31 2017 21:28
@zenweasel that will be great!!
Because, why bother about blaze that is only used in meteor. react.js is versatile.
Brent Hoover
@zenweasel
Oct 31 2017 21:32
well, templates have a ton of advantages. They are easy to use and understand and far more performant. But clearly React is the future.
William Moss
@willmoss1000
Oct 31 2017 21:37
i've installed the beesknees example plugin, but it's entirely unresponsive
this is all i get showing: Bee's Knees layoutlayoutHeader template: layoutHeaderlayoutFooter template: layoutFooterBeesKneesMain Template: productsLanding
is there any reason this could be?
Brent Hoover
@zenweasel
Oct 31 2017 21:52
I just tested it here and it seems to be working fine
William Moss
@willmoss1000
Oct 31 2017 21:55
ok, any idea what could be going wrong? I've just cloned master from reaction, and put the example theme in imports/plugin/custom
how should it look?
thanks!
Brent Hoover
@zenweasel
Oct 31 2017 21:56
so what’s happening? You aren’t getting anything except the nav bar?
William Moss
@willmoss1000
Oct 31 2017 22:00
not even the nav bar
just what i posted above
some text in a blue bar
Brent Hoover
@zenweasel
Oct 31 2017 22:00
maybe try doing a reaction reset?
William Moss
@willmoss1000
Oct 31 2017 22:01
will try that again :)
Emem Umoh
@ememumoh
Oct 31 2017 23:01
Any idea why I am still having the below on a windows 10 professional machine with imagemagick and graphicsmagick install and clearly stated in the "path"? : cfs:graphicsmagick could not find "graphicsMagic" or "imageMagic" on the
system.
I just checked PATH to see if I could find the GraphicsMagick or ImageMagic
unix/mac os/windows binaries on your system, I failed.
Why:
I may be blind or naive, help making me smarter
You havent added the path to the binaries
You havent actually installed GraphicsMagick or ImageMagick
Make sure "$PATH" environment is configured "PATH:/path/to/binaries"