These are chat archives for reactioncommerce/reaction

21st
May 2019
ashwinsoni
@ashwinsoni
May 21 05:51
@bnschmdt You may have to provide them in reaction .env file
PRERENDER_SERVICE_URL=
PRERENDER_TOKEN=
PRERENDER_HOST=
shruti0212
@shruti0212
May 21 06:46

@ashwinsoni Hiii make × ERR not found: make-$(foreach

$ make <target...> [options] it is error.

uroshren
@uroshren
May 21 07:27
Hello, how does graphql encode IDs after query? After running a query, IDs come out encoded already for exampe in the Query/catalogItemProduct
Loan Laux
@loan-laux
May 21 09:38
@uroshren Have a look at what's in reaction/imports/plugins/core/graphql/server/no-meteor/xforms/, and more specifically reaction/imports/plugins/core/graphql/server/no-meteor/xforms/catalogProduct.js:7 for your specific example. Hopefully it'll make things clearer.
uroshren
@uroshren
May 21 10:58
Ah thanks for the reply, but i've already checked that and didn't find what I was looking for.
My problem is that I don't know where it encodes after a query is finished. For example: in Query/catalogItemProduct.js before we return the resulting product, the Ids are decoded but after returning, it's encoded. I thought after returning in the Query folder thats the final result? I can't find where the Ids are actually being encoded.
Loan Laux
@loan-laux
May 21 11:01
In reaction/imports/plugins/core/catalog/server/no-meteor/resolvers/index.js you can see that there's a field-level resolver that transforms catalogItemProduct IDs into encoded ones.
Sorry, meant CatalogItemContent. So that applies to any query returning this schema, to make sure that we're not missing anything and that we don't repeat ourselves too much. One rule to target them all!
uroshren
@uroshren
May 21 11:03
Ah I see! Thank you very much :D
Loan Laux
@loan-laux
May 21 11:04
Anytime. :+1:
Vijay Prajapati
@cakesoft-vijay-prajapati
May 21 11:10
What is REST api url to connect with my native mobile app. Anyone please suggest how i can use Users api like login, register, products, checkout and orders.
Loan Laux
@loan-laux
May 21 11:11
@cakesoft-vijay-prajapati There's no REST API on Reaction, only a GraphQL one. The docs can be found here: http://api.docs.reactioncommerce.com.
Vijay Prajapati
@cakesoft-vijay-prajapati
May 21 11:13
@loan-laux
Ohh, means we have to create our REST API for mobile team with using GraphQL one.
Agusti Fernandez
@agustif
May 21 11:50
You can also use GraphQL as a transport layer to query on mobile with whatever you wish, actually.
Although, if you prefer to build an equivalent REST api for your graphql endpoint, you can use sofa from the guild org https://github.com/the-guild-org/Stack
Rajan Tiwari
@trojanh
May 21 11:52

Hi all, I am facing this issue for storefront, I think this might be because of some permission I realise

> Compiling client
web_1  | > Using external babel configuration
web_1  | > Location: "/usr/local/src/reaction-app/.babelrc"
web_1  | (node:71) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, mkdir '/usr/local/src/reaction-app/build/app'
web_1  |     at Object.mkdirSync (fs.js:752:3)
web_1  |     at sync (/usr/local/src/node_modules/mkdirp/index.js:71:13)
web_1  |     at sync (/usr/local/src/node_modules/mkdirp/index.js:77:24)
web_1  |     at sync (/usr/local/src/node_modules/mkdirp/index.js:77:24)
web_1  |     at sync (/usr/local/src/node_modules/mkdirp/index.js:77:24)
web_1  |     at Function.sync (/usr/local/src/node_modules/mkdirp/index.js:77:24)
web_1  |     at /usr/local/src/node_modules/write-file-webpack-plugin/dist/WriteFileWebpackPlugin.js:192:26
web_1  |     at /usr/local/src/node_modules/lodash/lodash.js:4911:15
web_1  |     at baseForOwn (/usr/local/src/node_modules/lodash/lodash.js:2996:24)
web_1  |     at /usr/local/src/node_modules/lodash/lodash.js:4880:18
web_1  |     at Function.forEach (/usr/local/src/node_modules/lodash/lodash.js:9344:14)
web_1  |     at handleAfterEmit (/usr/local/src/node_modules/write-file-webpack-plugin/dist/WriteFileWebpackPlugin.js:160:24)
web_1  |     at _err1 (eval at create (/usr/local/src/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:26:1)
web_1  |     at /usr/local/src/node_modules/next/dist/build/webpack/plugins/unlink-file-plugin.js:100:18

This is for remote server, and works fine on my local

Rajan Tiwari
@trojanh
May 21 13:19
I checked this https://forums.reactioncommerce.com/t/reaction-store-front-installation-error/1295/8, but it didn't work. Also the issue I am facing happens after compiling
web_1  | yarn run v1.13.0
web_1  | $ NODE_ENV=development node ./src/server.js
web_1  | [12:56:37 PM] Compiling server
web_1  | [12:56:38 PM] Compiling client
web_1  | > Using external babel configuration
web_1  | > Location: "/usr/local/src/reaction-app/.babelrc"
web_1  | (node:71) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, mkdir '/usr/local/src/reaction-app/build'
Eliot Hills
@elhil
May 21 20:31
does anyone have ideas/tools for maintaing similar storefronts in a sane way? I’m thinking about layout / theme differences - is there anything to do besides git + code structure?