These are chat archives for reactioncommerce/reaction

28th
Dec 2017
Loz
@lozGemachet_twitter
Dec 28 2017 00:16
unfortunately I got the same error again after setting that variable.
Loz
@lozGemachet_twitter
Dec 28 2017 00:43

After restarting the cmd, the error changed...

Installing dependencies for connectors-shopify...

module.js:327
throw err;
^
Error: Cannot find module 'c:\New\reaction\imports\plugins\included\connectors-shopify\—max-old-space-size=2048'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:140:18)
at node.js:1043:3
Failed to install npm dependencies for plugin: connectors-shopify

Brent Hoover
@zenweasel
Dec 28 2017 00:56
Are you sure you have the environment variable set correctly? Can you try setting it to 1024?
Janus Reith
@janus-reith
Dec 28 2017 00:58
Regarding the shipping cost per country, is this implemented yet?
Brent Hoover
@zenweasel
Dec 28 2017 00:59
@janus-reith No, I don’t believe so.
@lozGemachet_twitter Try: set TOOL_NODE_FLAGS="–max_old_space_size=1024”
Loz
@lozGemachet_twitter
Dec 28 2017 01:08
I don't have the memory issue anymore. just a new error about the shopfi pluhin
00WhengWheng
@00WhengWheng
Dec 28 2017 01:09
is [this tutorial] (https://docs.reactioncommerce.com/reaction-docs/master/fixtures-images) up to date? the images folder has to be in private/data or in private/custom?
Brent Hoover
@zenweasel
Dec 28 2017 01:35
@lozGemachet_twitter Right. It looks like somehow setting that env variable messed it up. So maybe back that out and try the set instead
@00WhengWheng In private/data. The directory is actually not important as long as it’s in private and that’s what you reference in code
00WhengWheng
@00WhengWheng
Dec 28 2017 01:57
ok but hook stay in server/startup/init.js right? cos it doesnt working for me...
not server/init.js as tutorial say...
Brent Hoover
@zenweasel
Dec 28 2017 02:00
No
it doesn’t matter which file it’s in. Do you have that file imported in your index.js in server?
00WhengWheng
@00WhengWheng
Dec 28 2017 02:02
no
Brent Hoover
@zenweasel
Dec 28 2017 02:02
The file needs to be imported for it to work
00WhengWheng
@00WhengWheng
Dec 28 2017 02:02
got it
Loz
@lozGemachet_twitter
Dec 28 2017 02:36

@zenweasel

@lozGemachet_twitter Try: set TOOL_NODE_FLAGS="–max_old_space_size=1024”
this did the trick, Working now THANKS

Akarshit Wal
@Akarshit
Dec 28 2017 15:18

I am running reaction with node 6.12 and the steps I did are

npm i -g reaction-cli
git clone <the path>
cd reaction
npm install
reaction

I get the following error in the browser console

modules.js:60403 Uncaught ReferenceError: Buffer is not defined
    at util.js (modules.js:60403)
    at fileEvaluate (modules-runtime.js:353)
    at require (modules-runtime.js:248)
    at _stream_readable.js (modules.js:54668)
    at fileEvaluate (modules-runtime.js:353)
    at require (modules-runtime.js:248)
    at readable.js (modules.js:54583)
    at fileEvaluate (modules-runtime.js:353)
    at require (modules-runtime.js:248)
    at index.js (modules.js:54461)

and

Uncaught TypeError: Cannot read property 'marketplaceEnabled' of undefined
    at app.js:125660
    at Tracker.Computation._compute (tracker.js:339)
    at new Tracker.Computation (tracker.js:229)
    at Object.Tracker.autorun (tracker.js:613)
    at app.js:125657
    at maybeReady (meteor.js:871)
    at HTMLDocument.loadingCompleted (meteor.js:883)
Any ideas?
José Luis Di Biase
@josx
Dec 28 2017 15:56
is there a way to extend cartOrderTransform in my custom plugin ( add a custom method there)?
Michael Jenny
@prinzdezibel
Dec 28 2017 16:58
@Akarshit any reason for using older node version? I believe it should be v8.x.
Akarshit Wal
@Akarshit
Dec 28 2017 16:59
oh OK I will try with 8
Michael Jenny
@prinzdezibel
Dec 28 2017 17:00
@josx I think you need to override the whole method and adapt it to your needs.
Loz
@lozGemachet_twitter
Dec 28 2017 19:39
Hello, I'm trying to post an array of data to a URL, can you please point me to an example on how to do it in reaction?
José Luis Di Biase
@josx
Dec 28 2017 19:40
@prinzdezibel thanks i will override it
Michael Jenny
@prinzdezibel
Dec 28 2017 19:47
@lozGemachet_twitter This sounds like you want a REST API. You may want to checkout these Meteor packages: simple:rest or nimble:restivus
Loz
@lozGemachet_twitter
Dec 28 2017 19:49
Thank you
Loz
@lozGemachet_twitter
Dec 28 2017 21:54
@prinzdezibel Isn't those packages used for creating an API? that's not what I want to do at the point. I just want to post to a URL.
00WhengWheng
@00WhengWheng
Dec 28 2017 23:37
how can i set up login service in reaction.json ?
'''
"services": [{
"facebook": {
"appId": "",
"secret": ""
},
"launchdock": {
"url": "",
"username": "",
"auth": ""
}
'''
services doesnt worth to login services aint it?