These are chat archives for reactioncommerce/reaction

4th
Apr 2017
Bible Logos The Game
@biblelogosthegame
Apr 04 2017 00:45
@hrath2015 I haven't recieved the error described in Issue #2069 My error seems to be different. The database isn't accepting the data from the fields in the checkout view.
Michael Duane Mooring
@mikeumus
Apr 04 2017 04:54
We're had an issue where our dev server ran out of space and got currupted as a result and now are on a fresh server merged onto rc-1.1.0 and have done rc reset a couple times but am getting "Oops, this page not found" when trying to create a new product or clicking on the example product at the route: http://104.198.104.67:3000/product
we're blocked
Michael Duane Mooring
@mikeumus
Apr 04 2017 05:07
It's our router maybe I think needs some dekinking from our edits
Michael Duane Mooring
@mikeumus
Apr 04 2017 05:12
nevermind, router is pristine seems
Granga
@Granga
Apr 04 2017 12:00
blob

Hi guys, I've just started learning about Reaction.
I've noticed it uses about 50% of my CPU all the time in development.

Is this expected?

Richa Bhardwaj
@richa
Apr 04 2017 12:31
Hi everyone
I get this error when I try to start the app:

=> Errors prevented startup:

While processing files with ecmascript (for target web.browser):
/Users/XXXXXXX/.meteor/packages/ecmascript/.0.6.3.v8afs8++os+web.browser+web.cordova/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

Brent Hoover
@zenweasel
Apr 04 2017 12:36
@Granga Yes, that's normal
tst17
@tst17
Apr 04 2017 12:37

@zenweasel What would be a proper way to only edit Layout for Checkout page? I have created a custom package, that declares a custom layout:

Reaction.registerPackage({
  label: "Test Checkout",
  name: "test-checkout",
  icon: "fa fa-shopping-cart",
  autoEnable: true,
  layout: [{
    layout: "testLayout",
    workflow: "coreCartWorkflow",
    collection: "Cart",
    theme: "default",
    enabled: true,
    structure: {
      template: "cartCheckout",
      layoutHeader: "testHeader",
      layoutFooter: "testFooter",
      notFound: "notFound",
      dashboardHeader: "",
      dashboardControls: "dashboardControls",
      dashboardHeaderControls: "",
      adminControlsFooter: "adminControlsFooter"
    }
  }]
});

Now, how do I use that testLayout for Checkout page only?

Brent Hoover
@zenweasel
Apr 04 2017 12:38
@richa can you try running 'meteor npm install' again and watching for any errors?
Richa Bhardwaj
@richa
Apr 04 2017 12:38
ok, trying @zenweasel
Brent Hoover
@zenweasel
Apr 04 2017 12:40
@tst17 you would need to modify the layout records for just the layout/workflow combinations you want to change
tst17
@tst17
Apr 04 2017 12:40
Could you please tell me what is the proper way to do that?
Brent Hoover
@zenweasel
Apr 04 2017 12:43
Are you using the example plugin?
tst17
@tst17
Apr 04 2017 12:46
No I am not. Just created a custom package that has the register.js (mentioned above) and related templates. Is there anything in the example plugin that would help me with amending the layout for checkout page?
Brent Hoover
@zenweasel
Apr 04 2017 12:54
well, what you are doing should be working.
Richa Bhardwaj
@richa
Apr 04 2017 12:56
@zenweasel it still doesn't work
same error
Brent Hoover
@zenweasel
Apr 04 2017 12:57
@richa What OS?
Richa Bhardwaj
@richa
Apr 04 2017 12:57
iOS
Brent Hoover
@zenweasel
Apr 04 2017 12:57
on an iPhone?
Richa Bhardwaj
@richa
Apr 04 2017 12:58
sry, OSX
Brent Hoover
@zenweasel
Apr 04 2017 12:59
and when do you see that error?
Granga
@Granga
Apr 04 2017 13:02
@zenweasel thanks
Richa Bhardwaj
@richa
Apr 04 2017 13:03
@zenweasel when I run "reaction", I see the following:
tst17
@tst17
Apr 04 2017 13:03

@zenweasel, Looking at /imports/plugins/core/checkout/register.js

That package declares /cart/checkout route in registry. It also declares a layout/workflow for that route (if I understood that right). Then, looking at Packages collection, I see under registry field related route, layout and workflow. If I edit layout field there, and set it to use my testLayout - it works.

But how do I do that from my custom package? I do not want to edit collection directly.

Richa Bhardwaj
@richa
Apr 04 2017 13:03

=> Started proxy.
=> Started MongoDB.
=> Errors prevented startup:

While processing files with ecmascript (for target web.browser):

/Users/richabhardwaj/.meteor/packages/ecmascript/.0.6.3.v8afs8++os+web.browser+web.cordova/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

Brent Hoover
@zenweasel
Apr 04 2017 13:10
Sorry folks. Earthquake here so I had to evacuate
Richa Bhardwaj
@richa
Apr 04 2017 13:10
ouch
hope everyone is safe
Brent Hoover
@zenweasel
Apr 04 2017 13:10
Everything is fine, just for safety
tst17
@tst17
Apr 04 2017 13:12
Glad you are fine @zenweasel
Any idea on how to solve the checkout layout issue? Any hint or point me out to right direction?
Spencer Norman
@spencern
Apr 04 2017 15:03
@mikeumus This sounds like a issue with layouts/workflows not getting read correctly. Have you changed any core workflows or layouts?
or perhaps it’s trying to prepend the store name ‘reaction’ in this case?
Bible Logos The Game
@biblelogosthegame
Apr 04 2017 17:18
@zenweasel Thanks for your help. I am curious if you know why the "[The data you sent was not accepted as valid]"
Stazia Tronboll
@WigginWannabe
Apr 04 2017 20:49
blob
Hi friends! I am trying to set up a reaction app, but am encountering errors with the install. I think I've traced it to node-pre-gyp, which has the wrong url (see image above), but I don't know what to do about it.
Has anyone else encountered this, or know of a way to manually set the url to the correct one?
If it helps, this is what I get if I try to run reaction anyway:
blob
and I get these warnings (even though I have manually installed the lower two with -g...)
blob
From the second image, it appears to be a problem with meteor, but I installed the requirements for reaction earlier today, so I should have an up-to-date version of anything. I appreciate any recommendations, thanks!
Brent Hoover
@zenweasel
Apr 04 2017 21:28
@WigginWannabe I think that error you are seeing during install and the one you are encountering during start are unrelated
the error you are getting on start is related to OS X not setting it’s open file limit high enough. Are you on OS X?
Stazia Tronboll
@WigginWannabe
Apr 04 2017 21:34
I am
Brent Hoover
@zenweasel
Apr 04 2017 21:35
Stazia Tronboll
@WigginWannabe
Apr 04 2017 21:35
Thank you; I'll look into them.
Jordan Schatz
@shofetim
Apr 04 2017 22:34
It looks like the plugin docs here: https://docs.reactioncommerce.com/reaction-docs/master/creating-a-plugin are broken.
Dev console says:

WARNING: npm peer requirements (for reactrouter:react-router-ssr) not installed:

Read more about installing npm peer dependencies:
http://guide.meteor.com/using-packages.html#peer-npm-dependencies

and the page just spins infinitely
Brent Hoover
@zenweasel
Apr 04 2017 22:41
@shofetim Where did you get that link from?
Anastasia Timoscenko
@anastasiatim
Apr 04 2017 23:01
Brent Hoover
@zenweasel
Apr 04 2017 23:03
Yeah, that link is broken, it should go here
Anastasia Timoscenko
@anastasiatim
Apr 04 2017 23:05
Thanks!
Brent Hoover
@zenweasel
Apr 04 2017 23:06
:+1: