These are chat archives for reactioncommerce/reaction

31st
May 2018
Jik1
@Jik1
May 31 2018 00:21

Hi any help
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Windows\system32>cd /Users/Jacinc/Projects/js

C:\Users\Jacinc\Projects\js>reaction init

Directory 'reaction' already exists.
Use 'reaction init somename' to install in a different directory.

C:\Users\Jacinc\Projects\js>reaction
Not in a Reaction app directory. To create a new app, run: reaction init

C:\Users\Jacinc\Projects\js> cd reaction

C:\Users\Jacinc\Projects\js\reaction>reaction
Setting up plugin imports...

Installing dependencies for connectors-shopify...

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

Provisioning assets...

[[[[[ C:\Users\Jacinc\Projects\js\reaction ]]]]]

=> Started proxy.
=> A patch (Meteor 1.6.1.1) for your current release is available!
Update this project now with 'meteor update --patch'.
=> Started MongoDB.
Linking -
<--- Last few GCs --->

[6576:0024BF70] 1994656 ms: Mark-sweep 753.5 (1089.2) -> 753.2 (1089.2) MB, 165
2.3 / 0.4 ms allocation failure GC in old space requested
[6576:0024BF70] 1996424 ms: Mark-sweep 753.2 (1089.2) -> 753.2 (1054.7) MB, 176
7.9 / 0.6 ms last resort GC in old space requested
[6576:0024BF70] 1998208 ms: Mark-sweep 753.2 (1054.7) -> 753.2 (1042.2) MB, 178
3.9 / 0.5 ms last resort GC in old space requested

<--- JS stacktrace --->

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

Security context: 0381632D <JSObject>
1: / anonymous / [C:\Users\Jacinc\AppData\Local.meteor\packages\meteor-to
ol\1.6.1\mt-os.windows.x86_32\dev_bundle\lib\node_modules\source-map\lib\source-
node.js:~336] pc=57D54ADB
2: SourceNode_walk [C:\Users\Jacinc\AppData\Local.meteor\packages\meteor-to
ol\1.6.1\mt-os.windows.x86_32...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memo
ry
1: node_module_register
2: v8::internal::Factory::NewUninitializedFixedArray
{ Error: Command failed: meteor --raw-logs
at checkExecSyncError (child_process.js:601:13)
at execSync (child_process.js:641:13)
at _callee$ (C:\Users\Jacinc\AppData\Roaming\npm\node_modules\reaction-cli\d
ist\commands\run.js:72:43)
at tryCatch (C:\Users\Jacinc\AppData\Roaming\npm\node_modules\reaction-cli\n
ode_modules\regenerator-runtime\runtime.js:65:40)
at Generator.invoke [as _invoke] (C:\Users\Jacinc\AppData\Roaming\npm\node_m
odules\reaction-cli\node_modules\regenerator-runtime\runtime.js:303:22)
at Generator.prototype.(anonymous function) [as next] (C:\Users\Jacinc\AppDa
ta\Roaming\npm\node_modules\reaction-cli\node_modules\regenerator-runtime\runtim
e.js:117:21)
at step (C:\Users\Jacinc\AppData\Roaming\npm\node_modules\reaction-cli\dist\
commands\run.js:98:191)
at C:\Users\Jacinc\AppData\Roaming\npm\node_modules\reaction-cli\dist\comman
ds\run.js:98:361
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
error: null,
cmd: 'meteor --raw-logs',
file: 'C:\Windows\system32\cmd.exe',
args:
[ 'C:\Windows\system32\cmd.exe',
'/d',
'/s',
'/c',
'"meteor --raw-logs"' ],
options:
{ stdio: [ [Object], [Object], [Object] ],
shell: true,
windowsVerbatimArguments: true,
file: 'C:\Windows\system32\cmd.exe',
args:
[ 'C:\Windows\system32\cmd.exe',
'/d',
'/s',
'/c',
'"meteor --raw-logs"' ],
envPairs:
[ 'ALLUSERSPROFILE=C:\ProgramData',
'APPDATA=C:\Users\Jacinc\AppData\Roaming',
'asl.log=Destination=file',
'ChocolateyInstall=C:\ProgramData\chocolatey',
'ChocolateyLastPathUpdate=Wed May 30 05:56:13 2018',
'CommonProgramFiles=C:\Program Files\Common Files',
'COMPUTERNAME=JACINC-PC',
'ComSpec=C:\Windows\system32\cmd.exe',
'FP_NO_HOST_CHECK=NO',
'GYP_MSVS_VERSION=2015',
'HOMEDRIVE=C:',
'HOMEPATH=\Users\Jacinc',
'LOCALAPPDATA=C:\

Brent Hoover
@zenweasel
May 31 2018 00:21
Directory 'reaction' already exists.
Use 'reaction init somename' to install in a different directory.
Jik1
@Jik1
May 31 2018 00:23
Error : App failed to start
Look at the item that says “FATAL ERROR”. And use that same flag: TOOL_NODE_FLAGS="--max-old-space-size=2048”
Jik1
@Jik1
May 31 2018 00:39

C:\Users\Jacinc\Projects\js\reaction>reaction run
Setting up plugin imports...

Installing dependencies for connectors-shopify...

module.js:549
throw err;
^

Error: Cannot find module 'C:\Users\Jacinc\Projects\js\reaction\imports\plugins\
included\connectors-shopify\'-max_old_space_size=1024''
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
Failed to install npm dependencies for plugin: connectors-shopify

C:\Users\Jacinc\Projects\js\reaction>reaction reset
?
Resetting the database! Also delete node_modules? (y/N) module.js:549
throw err;
^

Error: Cannot find module 'C:\Users\Jacinc\Projects\js\reaction\'-max_oldspace
size=1024''
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
Error: Command failed: meteor node -v
module.js:549
throw err;
^

Error: Cannot find module 'C:\Users\Jacinc\Projects\js\reaction\'-max_oldspace
size=1024''
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3

C:\Users\Jacinc\Projects\js\reaction>TOOL_NODE_FLAGS='-max_old_space_size=1024'
'TOOL_NODE_FLAGS' is not recognized as an internal or external command,
operable program or batch file.

im using win7 32
Brent Hoover
@zenweasel
May 31 2018 00:40
reaction TOOL_NODE_FLAGS='-max_old_space_size=1024’
I think you can also do set TOOL_NODE_FLAGS='-max_old_space_size=1024’ to set it for the session
Jik1
@Jik1
May 31 2018 00:41
i have tried both the comands still not working
set TOOL_NODE_FLAGS='-max_old_space_size=1024’
Brent Hoover
@zenweasel
May 31 2018 00:44
When you say "it’s not working” you mean you are getting the same error?
Jik1
@Jik1
May 31 2018 00:45
yes right
Brent Hoover
@zenweasel
May 31 2018 00:49
Not sure then
Jik1
@Jik1
May 31 2018 00:50
PrtScr capture_2.jpg
so no hopes
Brent Hoover
@zenweasel
May 31 2018 00:52
so now that you ran set, try just running reaction again
Jik1
@Jik1
May 31 2018 00:54
Error : can not find module
Brent Hoover
@zenweasel
May 31 2018 00:55
You are just running reaction?
Jik1
@Jik1
May 31 2018 00:55
yes
Brent Hoover
@zenweasel
May 31 2018 00:55
Don’t know then
Jik1
@Jik1
May 31 2018 00:58
what should i do now :worried:
Patrick Newell
@pnewell4_twitter
May 31 2018 00:59
I think you need two dashes... --max_old_space_size=1024
Jik1
@Jik1
May 31 2018 01:03
i tried this now

C:\Users\Jacinc\Projects\js\reaction>Error: Cannot find module 'C:\Users\Jacinc\
Projects\js\reaction\'-max_oldspace
'Error:' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Jacinc\Projects\js\reaction>size=1024''
'size' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Jacinc\Projects\js\reaction> at Function.Module._resolveFilename (mo
dule.js:547:15)
Invalid command.

The AT command schedules commands and programs to run on a computer at
a specified time and date. The Schedule service must be running to use
the AT command.

AT [\computername] [ [id] [/DELETE] | /DELETE [/YES]]
AT [\computername] time [/INTERACTIVE]
[ /EVERY:date[,...] | /NEXT:date[,...]] "command"

\computername Specifies a remote computer. Commands are scheduled on the
local computer if this parameter is omitted.
id Is an identification number assigned to a scheduled
command.
/delete Cancels a scheduled command. If id is omitted, all the
scheduled commands on the computer are canceled.
/yes Used with cancel all jobs command when no further
confirmation is desired.
time Specifies the time when command is to run.
/interactive Allows the job to interact with the desktop of the user
who is logged on at the time the job runs.
/every:date[,...] Runs the command on each specified day(s) of the week or
month. If date is omitted, the current day of the month
is assumed.
/next:date[,...] Runs the specified command on the next occurrence of the
day (for example, next Thursday). If date is omitted, the
current day of the month is assumed.
"command" Is the Windows NT command, or batch program to be run.

C:\Users\Jacinc\Projects\js\reaction> at Function.Module._load (module.js:474
:25)
Invalid command.

The AT command schedules commands and programs to run on a computer at
a specified time and date. The Schedule service must be running to use
the AT command.

AT [\computername] [ [id] [/DELETE] | /DELETE [/YES]]
AT [\computername] time [/INTERACTIVE]
[ /EVERY:date[,...] | /NEXT:date[,...]] "command"

\computername Specifies a remote computer. Commands are scheduled on the
local computer if this parameter is omitted.
id Is an identification number assigned to a scheduled
command.
/delete Cancels a scheduled command. If id is omitted, all the
scheduled commands on the computer are canceled.
/yes Used with cancel all jobs command when no further
confirmation is desired.
time Specifies the time when command is to run.
/interactive Allows the job to interact with the desktop of the user
who is logged on at the time the job runs.
/every:date[,...] Runs the command on each specified day(s) of the week or
month. If date is omitted, the current day of the month
is assumed.
/next:date[,...] Runs the specified command on the next occurrence of the
day (for example, next Thursday). If date is omitted, the
current day of the month is assumed.
"command" Is the Windows NT command, or batch program to be run.

C:\Users\Jacinc\Projects\js\reaction> at Function.Module.runMain (module.js:6
93:10)
Invalid command.

The AT command schedules commands and programs to run on a computer at
a specified time and date. The Schedule service must be running to use
the AT command.

AT [\computername] [ [id] [/DELETE] | /DELETE [/YES]]
AT [\computername] time [/INTERACTIVE]
[ /EVERY:date[,...] | /NEXT:date[,...]] "command"

\computername Specifies a remote computer. Commands are scheduled on the
local computer if this parameter is omitted.
id

Jik1
@Jik1
May 31 2018 01:10

C:\Users\Jacinc\Projects\js\reaction>--max_old_space_size=1024
'--max_old_space_size' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Jacinc\Projects\js\reaction>

Patrick Newell
@pnewell4_twitter
May 31 2018 01:10
@Jik1 that error report suggests your environment variable only had a single -. try re-setting it: set TOOL_NODE_FLAGS="--max-old-space-size=4096"
Jik1
@Jik1
May 31 2018 01:10
i tried this too
let me try again

C:\Users\Jacinc\Projects\js\reaction>set TOOL_NODE_FLAGS="--max-old-space-size=4
096"

C:\Users\Jacinc\Projects\js\reaction>reaction
Error: Command failed: meteor node -v

C:\Users\Jacinc\Projects\js\reaction>

Prawx
@Prawx
May 31 2018 01:20
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
no matter what i do
i get this
whether i'm trying to start reaction or build it
i completely reinstalled my OS on my vps and started with a clean installation from scratch and still getting that and have tried everything google told me to do
i have 4 GB of ram
what on earth do I do this is not okay
Patrick Newell
@pnewell4_twitter
May 31 2018 01:30
yikes! you reinstalled your OS and it's not working?! wish I could help more... I am way out of my depth here
Prawx
@Prawx
May 31 2018 01:31
so confused as to why this is happening.
never was a problem before.
my situation is kind of urgent. wish this chat was more active :(
Searching the forums is also a good way to find some answers quickly. Chat search is not great unfortunately
Prawx
@Prawx
May 31 2018 04:30
i don't use docker so that's likely not my issue
unfortunately :(
Prawx
@Prawx
May 31 2018 04:38
does anyone know how to make a specific shipping rate for x amount of products
hrath2015
@hrath2015
May 31 2018 07:39
@Jik1 looks like you are still on 32 bit windows machine. Now sure if meteor works for you. what are specs of machine?
Srikanth K
@srikanthkolli
May 31 2018 09:40
@zenweasel Is it possible to modify the asset path (JS, CSS)? I want asset URL like domain.com/myasset-folder/xxx.js ?
Akarshit Wal
@Akarshit
May 31 2018 09:44
Srikanth K
@srikanthkolli
May 31 2018 09:49
thanks i will check that @Akarshit
jiayimu
@jiayimu
May 31 2018 13:58
@thegtagamer try import { Reaction } from "/client/api"; const slug = Reaction.Router.getParam("slug"); to get the slug
Abhishek
@thegtagamer
May 31 2018 14:17
@Akarshit Hello akarshit, Ive been trying to parse a chat widget script in the header of my reaction project...Earlier i was doing a meteor npm install and getting that script in my react code...But will @srikanthkolli 's solution work for me..If i want to parse my cdn chat widget script in the header of my page ??
@jiayimu still its throwing undefined
Isaac Weber
@ikey2244
May 31 2018 15:29
is there anyway to speed up development time? After every save it will take 3 minutes to rebuild and then sometimes it will give me an error saying the port is already in use even though I was just using the same exact port
William Moss
@willmoss1000
May 31 2018 15:32
probably not recommended, but I run kill -9ps ax | grep node | grep meteor | awk '{print $1}'to kill meteor before I run. Also, killing and restarting is often faster than refreshing. And, when I run it I callreaction && METEOR_DISABLE_OPTIMISTIC_CACHING=1`.
That was poor formatting! Also, remove packages you don't need
@ikey2244
Isaac Weber
@ikey2244
May 31 2018 15:35
@willmoss1000 the thing is I don't know what packages are required by reaction.. I have installed 0 packages and it's taking this long
William Moss
@willmoss1000
May 31 2018 15:37
@ikey2244 I wouldn't remove the ones in core.
Just put a dot in-front on "included" ones you don't need. i.e. I don't need any of the taxes plugin
or connectors
and then a couple that don't work in marketplace
and the payment providors you don't use
Isaac Weber
@ikey2244
May 31 2018 15:41
probably that language package to eh? @willmoss1000
William Moss
@willmoss1000
May 31 2018 15:47
i18n? that's in core. I wouldn't remove any of those
Patrick Newell
@pnewell4_twitter
May 31 2018 15:53
@spencern any suggestions for resolving the snyk-security failures on Pull Requests?
The failure points to a version of stringstream used by several packages.
here is the latest failure report from one of my PRs: https://circleci.com/gh/reactioncommerce/reaction/18124
oh! just looked at the GH Activity and see that you're already working on it.
Isaac Weber
@ikey2244
May 31 2018 16:11
@willmoss1000 how can you tell if it's core or not?
Spencer Norman
@spencern
May 31 2018 17:42
@pnewell4_twitter I’m working on that a bit, hopefully will have something merged today
jiayimu
@jiayimu
May 31 2018 19:51

Hello. I am trying to create a tag setting card. I am using Components.TextField for editing the tag name. The field shows correctly, but I cannot edit the text. Does anyone know anything about this? Here is my component code:
`
import React, { Component } from "react";
import { Components } from "@reactioncommerce/reaction-components";

class HeTagSettings extends Component {
constructor(props) {
super(props);
console.log(props);
this.state = {
expandedCard: props.editFocus,
tag: props.tag,
value: ""
};
}

componentWillReceiveProps(nextProps) {
this.setState({
expandedCard: nextProps.editFocus,
tag: nextProps.tag
});
}

handleCardExpand = (event, card, cardName, isExpanded) => {
if (this.props.onCardExpand) {
this.props.onCardExpand(isExpanded ? cardName : undefined);
}
}

handleChange = (event, value) => {
this.setState({
value: value
});
}

isExpanded = (groupName) => this.state.expandedCard === groupName;

get tag() {
return this.state.tag || this.props.tag || {};
}

render() {
return (
<Components.CardGroup>
<Components.Card expanded={this.isExpanded("tagDetails")} name={"tagDetails"} onExpand={this.handleCardExpand} >
<Components.CardHeader actAsExpander={true} title="Tag Settings" />
<Components.CardBody expandable={true}>
<Components.TextField label="Title" type="text" name="name" value={this.tag.name} onChange={this.handleChange} placeholder="Title" />
</Components.CardBody>
</Components.Card>
</Components.CardGroup>);
}
}

export default HeTagSettings;
`

German Bortoli
@Germanaz0
May 31 2018 20:10

Hello everyone, I am starting to develop in reaction, but I have some dubts, I would like to use the docker instance for development.

Question: How to enable a "hot reloading" for example, if I touch some less, react component or html, how to view it on live ?

Jik1
@Jik1
May 31 2018 21:46
Any Help
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - Javascript heap out of memory