These are chat archives for reactioncommerce/reaction

29th
Jan 2019
Abhay Kumar
@kabhay007
Jan 29 04:24
Is it possible to run Reaction only as a backend server. Basically remove all the client parts and only use it as a graphql api server so that it's lighter and the server reload after any change is faster. I want to write a different client to consume the APIs. ?
Kamelia2000
@Kamelia2000
Jan 29 04:26
@kabhay007 very nice question this is really big question always i have .
Kamelia2000
@Kamelia2000
Jan 29 04:32
One of the big problem on Reactionecommerce is not Microservice
Kamelia2000
@Kamelia2000
Jan 29 04:41
@bnschmdt @bnschmdt why its too slow
Ben S.
@bnschmdt
Jan 29 04:44
@Kamelia2000 yeh we’re trying to improve this on some fronts by faking it with prerender, improved router functionality. Our site is a multipage app, so we try to group usual routes together.
Abhay Kumar
@kabhay007
Jan 29 04:52
@Kamelia2000 Thanks. That means using a faster client service for example the reaction-next-storefront is not gonna change much. Because even if it's faster, any changes made to the reaction server is going to be blocking while doing local development?
Loan Laux
@loan-laux
Jan 29 08:37
@kabhay007 @Kamelia2000 Yes, you can absolutely do that. The GraphQL API is there to give you 100% freedom as to what you want to build with it. It can even be a native mobile app if you need it.
Abhay Kumar
@kabhay007
Jan 29 08:50
@loan-laux Makes sense. Any way i can get read of the client part of main reaction app and make it lighter. So that it reloads on changes faster and speeds up local development.
rlamostre0
@rlamostre0
Jan 29 09:11

I need help below
error An unexpected error occurred: "EACCES: permission denied, mkdir '/home/node/.cache/yarn/v4/npm-@reactioncommerce-components-0.60.1-e8ae8517453b455c6d90ddab52e7f82aa5f28540'".
info If you think this is a bug, please open a bug report with the information provided in "/usr/local/src/reaction-app/yarn-error.log".

To note; I did not run make as sudo

Muhammad Adil
@adilsaeed31
Jan 29 09:11
@rlamostre0 Having same error here.
@rlamostre0 from last two days.
@rlamostre0 go to reaction-next-starterkit and open the docker-compose.yml file and commit the line starting with $HOME/.cache/yarn-offline-mirror:/home/node/.cache/yarn-offline-mirror
and then do docker-compose up with sudo or without sudo try with both.
rlamostre0
@rlamostre0
Jan 29 09:15
thanks will try
@adilsaeed31 but were you able to have it working on your machine?
Muhammad Adil
@adilsaeed31
Jan 29 09:17
I just go this fix from the github repo issues, now I tried the installation is done now. I am tyring to open it on browser now. It's still loading for me from last 2 minutes.
Loan Laux
@loan-laux
Jan 29 09:22
@kabhay007 Aren't you using the Next.js starter kit?
Abhay Kumar
@kabhay007
Jan 29 10:00
@loan-laux I am using it but i still need to make server side changes in case I want to add a new api or something. And making changes on the main reaction app is a very slow process. So I want to make that faster.
Muhammad Adil
@adilsaeed31
Jan 29 10:10
@kabhay007 I fixed the insallation issue now, reaction-next-starterkit is opening still giving me the error that some query is not working properly?
@kabhay007 Did you face this kind of issue?
Muhammad Adil
@adilsaeed31
Jan 29 10:18
Guys, I am getting this error in reaction-next-starterkit
 Message: Cannot query field "displayTitle" on type "Tag"., Location: [{"line":36,"column":3}], Path: undefined
Abhay Kumar
@kabhay007
Jan 29 10:53
Andrea Valdi
@avaldi
Jan 29 12:15
While playing around with the GraphQL-alpha API I couldn't find any mutation to create a products/variants. Am I missing something or this is not implemented yet?
rlamostre0
@rlamostre0
Jan 29 13:52

Is anyone experiencing this now?
Connecting to localhost (localhost)|::1|:4000... failed: Connection refused.

on [Merge pull request #491 from reactioncommerce/release-v2.0.0-rc.9]

port 3000 seems to be ok
Abhishek
@thegtagamer
Jan 29 14:12
Hello guys, the following GTM resource link is being blocked by Content Security Policy in RC
BrowserPolicy.content.allowOriginForAll("https://tagmanager.google.com/debug/debuguiApp.js");
it still blocks the resource even when the link is added to the BrowserPolicy
This is my BrowserPolicy file:
import { BrowserPolicy } from "meteor/browser-policy-common";

BrowserPolicy.content.allowOriginForAll("https://stats.g.doubleclick.net/r/collect*");
BrowserPolicy.content.allowOriginForAll("https://www.google.com/ads/*");
BrowserPolicy.content.allowOriginForAll("https://www.google.co.in/ads/*");
BrowserPolicy.content.allowImageOrigin("google.com/ads/ga-audiences");
BrowserPolicy.content.allowImageOrigin("google.co.in/ads/ga-audiences");
BrowserPolicy.content.allowOriginForAll("https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js");
BrowserPolicy.content.allowOriginForAll("https://cdn.rawgit.com/prashantchaudhary/ddslick/master/jquery.ddslick.min.js");
BrowserPolicy.content.allowOriginForAll("https://tagmanager.google.com/debug");
BrowserPolicy.content.allowOriginForAll("https://tagmanager.google.com/debug/css.css");
BrowserPolicy.content.allowOriginForAll("https://tagmanager.google.com/debug/*");
BrowserPolicy.content.allowOriginForAll("https://googletagmanager.com/*");
BrowserPolicy.content.allowOriginForAll("https://www.gstatic.com/*");
BrowserPolicy.content.allowOriginForAll("https://ssl.gstatic.com/*");
BrowserPolicy.content.allowOriginForAll("https://tagmanager.google.com/debug/angular-bundle.js");
BrowserPolicy.content.allowOriginForAll("https://ssl.gstatic.com/analytics-suite/header/legacy/v2/ic_tag_manager.svg");
BrowserPolicy.content.allowOriginForAll("https://tagmanager.google.com/debug/debuguiApp.js");
BrowserPolicy.content.allowOriginForAll("https://www.gstatic.com/images/icons/material/system/1x/keyboard_arrow_up_white_48dp.png");
BrowserPolicy.content.allowOriginForAll("*google.com/*");
Loan Laux
@loan-laux
Jan 29 16:54
@avaldi Not implented yet as far as I know
@thegtagamer Do you see errors that explicitely mention security policy on these files?
I'd say try to allow whole domains as a test and report back. Obviously this is for debugging purposes, but it'll allow us to narrow the issue down.
F.J. Genus
@FJKhan
Jan 29 17:08
@loan-laux hey, are you still able to provide me with some assistance?
Andrés Cortés
@cortesa
Jan 29 19:04
Hi, I followed this to create mutation and register it (related to a new payment method): https://github.com/reactioncommerce/reaction-docs/blob/master/public-docs/graphql-create-mutation.md but I can find how to call it, I looked into the examples (payment-example, payment-stripe) and they use simpleGraphQLClient.mutations.placeOrderWith...but in simpleGraphQLClient.mutationsobject ( I do: console.log('Mutations -->', simpleGraphQLClient.mutations);) don't exists my mutation method, where it is, how can I call it to try to register a order?, Thanks all.
I am working with v2.0.0-rc8 (tag)
Any genious that can explain something about this?