These are chat archives for reactioncommerce/reaction

4th
Oct 2017
RedFelix
@J2Phoenix
Oct 04 2017 00:28

I keep getting an error message whenever I startup reaction: Errors prevented startup:

While processing files with less (for target web.browser):
imports/plugins/included/default-theme/client/styles/main.less:154: Unknown import: {}/node_modules/react-select/less/select.less

While minifying app stylesheet:
module.js:325:15: Cannot find module 'autoprefixer'
at Function.Module._resolveFilename (module.js:325:15)
at Function.require.resolve (internal/module.js:16:19)
at Object.require (C:\tools\isobuild\bundler.js:1903:38)
at packages/minifier-postcss/plugin/minify-css.js:52:37
at Array.forEach (native)
at getPostCSSPlugins (packages/minifier-postcss/plugin/minify-css.js:51:43)
at packages/minifier-postcss/plugin/minify-css.js:155:36
at Array.map (native)
at mergeCss (packages/minifier-postcss/plugin/minify-css.js:139:23)
at CssToolsMinifier.processFilesForBundle (packages/minifier-postcss/plugin/minify-css.js:109:18)

Your application has errors. Waiting for file change.
=> Meteor 1.5.2.2 is available. Update this project with 'meteor update'.
Started MongoDB.

Tyler Pham
@DisruptiveMind
Oct 04 2017 01:39
just chiming in here.... @Jentoday have you tried to do an npm install?
Josh Cox
@joshuacox
Oct 04 2017 01:44
so I got another pass at circleCI, but look at the only commit OpenBusinessBox/reaction@0c96ba7 where all i did was downgrade meteor
RedFelix
@J2Phoenix
Oct 04 2017 01:54
npm warn enoent
Tyler Pham
@DisruptiveMind
Oct 04 2017 02:22
@Jentoday is there more details to your error? looks like your project structure is not as expected.
RedFelix
@J2Phoenix
Oct 04 2017 02:55
I already posted the error message when running reaction
Brent Hoover
@zenweasel
Oct 04 2017 03:00
@Jentoday Have you made any modification?
RedFelix
@J2Phoenix
Oct 04 2017 03:01
No
Brent Hoover
@zenweasel
Oct 04 2017 03:01
Have you tried running meteor npm install?
RedFelix
@J2Phoenix
Oct 04 2017 03:01
I already have it installed
Brent Hoover
@zenweasel
Oct 04 2017 03:01
that’s not what that does
it installs the needed npm packages for the project
Josh Cox
@joshuacox
Oct 04 2017 03:02
using meteors internal npm
RedFelix
@J2Phoenix
Oct 04 2017 03:04
It says npm warn eneont: no such file or directory and list a bunch of package.json
Brent Hoover
@zenweasel
Oct 04 2017 03:06
You are in the root of your Reaction project?
RedFelix
@J2Phoenix
Oct 04 2017 03:06
yes
Brent Hoover
@zenweasel
Oct 04 2017 03:07
what do you get from reaction -v?
RedFelix
@J2Phoenix
Oct 04 2017 03:10
Node:6.11.3 NPM:3.10.10 Meteor Node:4.8.4 Meteor NPM: 4.6.1 Reaction CLI: 0.13.1 Reaction:1.4.3 Reaction branch: master
Brent Hoover
@zenweasel
Oct 04 2017 03:11
that’s a pretty old version of npm. Can you try updating that?
although the Meteor npm looks correct
Josh Cox
@joshuacox
Oct 04 2017 03:17
lol that is lts/boron is nearly considered 'up to date' with 6.11.4 recently dropping. but I agree with @zenweasel I found I have less problems with newer nodes (8.6.0 here atm), also @Jentoday where in your file system is reaction located? any mixing of 64-bit and 32-bit? enoent means npm is not finding things it expects, is there a package.json in the root of reaction?
RedFelix
@J2Phoenix
Oct 04 2017 03:20
no only 64-bit
RedFelix
@J2Phoenix
Oct 04 2017 04:54
ok It's working after the update.
Brent Hoover
@zenweasel
Oct 04 2017 04:56
awesome
ConstanceLee ELF
@Constaxxx_twitter
Oct 04 2017 06:01
Hi, I also receive error message: "Unable to solve some module" when start reaction.
Brent Hoover
@zenweasel
Oct 04 2017 06:02
Have you tried running meteor npm install
ConstanceLee ELF
@Constaxxx_twitter
Oct 04 2017 06:06
yes but I didn't see any success message, command prompt auto close after few seconds.
Brent Hoover
@zenweasel
Oct 04 2017 06:06
Windows?
ConstanceLee ELF
@Constaxxx_twitter
Oct 04 2017 06:06
Yes window 7
Brent Hoover
@zenweasel
Oct 04 2017 06:06
are you running this from a command line prompt?
ConstanceLee ELF
@Constaxxx_twitter
Oct 04 2017 06:07
yes
Brent Hoover
@zenweasel
Oct 04 2017 06:07
you type meteor npm install and the command prompt auto-closes?
ConstanceLee ELF
@Constaxxx_twitter
Oct 04 2017 06:08
It will display message like "fetch metadata" then auto close after that
Brent Hoover
@zenweasel
Oct 04 2017 06:09
I’ve never seen that before
You’ve installed all the prerequisites for Windows?
ConstanceLee ELF
@Constaxxx_twitter
Oct 04 2017 06:14

Here's all the command that I run and version info, did I missed out anything?

  1. npm install -g reaction-cli
  2. reaction init
  3. meteor npm install
  4. reaction run

Node: 6.11.0
NPM: 5.4.2
Meteor Node: 4.8.4
Meteor NPM: 4.6.1
Reaction CLI: 0.14.2
Reaction: 1.4.3
Reaction branch: master

Brent Hoover
@zenweasel
Oct 04 2017 06:18
there is also installing all the prerequisites as outlined here: https://docs.reactioncommerce.com/reaction-docs/master/requirements
Ashish
@ashishgokhale
Oct 04 2017 07:02
Is there any way in RC to use cdn media path instead of uploading image?
Daniel « Klokie » Grossfeld
@klokie
Oct 04 2017 08:58
Hi y'all, there are two issues I noticed; I'm not sure if they've been previously addressed, but
1) I'm not able to install on Mac OS due to the error This CLI tool has been deprecated in favor of the reaction-cli Node module. and
2) the docs on https://docs.reactioncommerce.com/reaction-docs/development/installation don't seem to load unless you choose a specific version number.
re: (1), I've removed and reinstalled reaction several times and adjusted my NODE_PATH to see if that would help (it didn't)
Brent Hoover
@zenweasel
Oct 04 2017 09:04
are you typing ./reaction?
Daniel « Klokie » Grossfeld
@klokie
Oct 04 2017 09:05
yes, following the installation instructions
Brent Hoover
@zenweasel
Oct 04 2017 09:06
where do you see that?
you should just type reaction
without the ./
Daniel « Klokie » Grossfeld
@klokie
Oct 04 2017 09:06
klokie at monarch in /www/Apps/reaction on master
$ reaction

This CLI tool has been deprecated in favor of the reaction-cli Node module.
More info at https://www.npmjs.com/package/reaction-cli

You can install it by running:

  npm install -g reaction-cli

Then you can see the usage info by running 'reaction --help'
…OR
klokie at monarch in /www/Apps/reaction on master
$ ./reaction

This CLI tool has been deprecated in favor of the reaction-cli Node module.
More info at https://www.npmjs.com/package/reaction-cli

You can install it by running:

  npm install -g reaction-cli

Then you can see the usage info by running 'reaction --help'
Brent Hoover
@zenweasel
Oct 04 2017 09:07
I mean, where are you seeing it should run ./reaction instead of reaction?
basically, just don’t put the dot and the slash. You are forcing it to run the local shell script rather than the CLI
Daniel « Klokie » Grossfeld
@klokie
Oct 04 2017 09:08
https://github.com/reactioncommerce/reaction#installation says run without the ./, but as you can see above I've tried both
Brent Hoover
@zenweasel
Oct 04 2017 09:08
that’s really weird
Daniel « Klokie » Grossfeld
@klokie
Oct 04 2017 09:09
i know! 😕
Brent Hoover
@zenweasel
Oct 04 2017 09:09
have you successfully installed the CLI?
Daniel « Klokie » Grossfeld
@klokie
Oct 04 2017 09:09
yes, by following the previous 3 installation steps (npm install -g reaction-cli && reaction init && cd reaction)
Brent Hoover
@zenweasel
Oct 04 2017 09:10
you received no errors during the npm install?
Daniel « Klokie » Grossfeld
@klokie
Oct 04 2017 09:11
nope, reaction@1.4.3 /usr/local/src/reaction \ … \ Reaction successfully installed!.
Brent Hoover
@zenweasel
Oct 04 2017 09:12
what do you get from which reaction?
Daniel « Klokie » Grossfeld
@klokie
Oct 04 2017 09:12
klokie at monarch in /www/Apps/reaction on master
$ which reaction
./reaction
Brent Hoover
@zenweasel
Oct 04 2017 09:12
what happens if you delete that file?
do you have something manipulating your path?
it should never be running a local file if you don’t specify the dot/slash
Daniel « Klokie » Grossfeld
@klokie
Oct 04 2017 09:13
aha!
$ rm ./reaction && which reaction
/usr/local/bin/reaction
How strange. I don't see anything that would manipulate my PATH in that way…
Brent Hoover
@zenweasel
Oct 04 2017 09:19
Yeah, I didn’t even know that would be possible
quite a security hole that would be
Daniel « Klokie » Grossfeld
@klokie
Oct 04 2017 09:19
could be my terminal
with that said, IMHO if you don't want users to run the script that's in the root of the repo, that has the same name as the script you do want them to run, why not move it into another subdirectory (e.g. build etc)
Brent Hoover
@zenweasel
Oct 04 2017 09:21
because that used to work, and our instructions used to say ./reaction
Daniel « Klokie » Grossfeld
@klokie
Oct 04 2017 09:21
gotcha ;)
Brent Hoover
@zenweasel
Oct 04 2017 09:21
so for backwards-compatability sake
Daniel « Klokie » Grossfeld
@klokie
Oct 04 2017 09:21
thanks for the help anyway!
Brent Hoover
@zenweasel
Oct 04 2017 09:21
:+1:
Daniel « Klokie » Grossfeld
@klokie
Oct 04 2017 09:22
looking forward to actually trying it out now :clap:
Brent Hoover
@zenweasel
Oct 04 2017 09:22
hopefully smoother from here on in
Ashish
@ashishgokhale
Oct 04 2017 10:03
Is there any way in RC to use cdn media path instead of uploading media ? @zenweasel
Daniel « Klokie » Grossfeld
@klokie
Oct 04 2017 10:18
cheers @zenweasel , got up and running in no time once you helped me sort out the installation issue.
next question - I don't see SSR [Server Side Rendering] listed anywhere on the FAQ/roadmap. Are there plans to support SSR "out of the box" with the latest Meteor ?
MichaelF77
@MichaelF77
Oct 04 2017 10:38
which Mongo collection has URL or ID of an image for the product?
I can see in Revisions mention of image but not URL itself
Ashish
@ashishgokhale
Oct 04 2017 11:03
@spencern Is there any way in RC to use cdn media path instead of uploading media ?
Brent Hoover
@zenweasel
Oct 04 2017 11:06
@klokie Yes, SSR Rendering is the main reason we are pushing to finish our rewrite to React. But it will be after we finish marketplace
@ashishgokhale Images are in the Media colleciton which is stored in the cfs.Media.filerecord collection (amongst others)
@ashishgokhale Currently I know of no way to do that “out of the box”. You would need to customize the Media collection
Ashish
@ashishgokhale
Oct 04 2017 11:15
@zenweasel is there any doc available which help me in this, Thanks
sankthetester
@sankthetester
Oct 04 2017 11:29

@zenweasel

okay running git does bring up all the coomon git commands used in various situations

sankthetester
@sankthetester
Oct 04 2017 11:44
new issue
rc err 1.png
rc err 2.png
any assistance would be deeply appreciated
Josh Cox
@joshuacox
Oct 04 2017 13:09
what time is the CC this morning? did it change times to accomodate someone in the east?
Spencer Norman
@spencern
Oct 04 2017 13:36
Starts in 24 minutes
machiko
@machikoyasuda
Oct 04 2017 14:08
Community call just started! Join: http://getrxn.io/reaction-community-call
Daniel Honig
@dhonig
Oct 04 2017 14:47
Looks like the community call has ended?
Josh Cox
@joshuacox
Oct 04 2017 14:53
yep not too long ago
I think the thing that excites me the most is the PR about units! its the little things
@dhonig do you have any CI setup? with auto builds? I cannot get a build in circleCI to complete with meteor 1.5.2.1 or above reactioncommerce/reaction#3023
all of those in the table are based on commits that pass in reaction's CI, @jshimko are there any more environment variables I should be defining?
Jeremy Shimko
@jshimko
Oct 04 2017 15:01
no, only the Docker Hub credentials are required (and should have absolutely no effect on the memory error)
Daniel Honig
@dhonig
Oct 04 2017 15:01
@joshuacox was going to set up drone or something
there was one more tool from Pivotal we were evaluting
Josh Cox
@joshuacox
Oct 04 2017 15:02
I've got the starts of a travis just to get a second opinion
Daniel Honig
@dhonig
Oct 04 2017 15:03
We should try SemaphoreCI, I used them extensively on an Elixir project....I here Gitlab is not so bad either
Josh Cox
@joshuacox
Oct 04 2017 15:03
if not environment variables what else could be different between my circleCI builds and the main reaction ones? the meteor cache?
Daniel Honig
@dhonig
Oct 04 2017 15:05
the cache sure
Josh Cox
@joshuacox
Oct 04 2017 15:08
I can't think of anything else at the moment, as I'm pushing branches that are exact commits that are passing in reaction's CI. I'm not a circleCI expert and there are a lot of knobs and sliders back here
Josh Cox
@joshuacox
Oct 04 2017 15:15
I can make a gitlab one I have a gitlab up and running
Daniel Honig
@dhonig
Oct 04 2017 15:16
I have several rails projects running on CircleCI, I'm looking for a docker based solution
Josh Cox
@joshuacox
Oct 04 2017 15:18
the gitlab one is docker based, you start from an image: line
then you can run a heterogeneous cluster of gitlab worker nodes that actually does the builds based on a tagging system
Daniel Honig
@dhonig
Oct 04 2017 15:20
Cool....Let me know if you need some help
should be a way to invite me
Josh Cox
@joshuacox
Oct 04 2017 15:22
you are all welcome to have an account here https://gitlab.webhosting.coop/ but please be respectful and dont commit giant binary blobs etc. I only have about 50 gigs dedicated to that VM atm
that also nets you access to my mattermost https://mattermost.webhosting.coop/
Daniel Honig
@dhonig
Oct 04 2017 15:32
Gitlab login worked for me
Josh Cox
@joshuacox
Oct 04 2017 15:34
feel free to create a group gimme a second I'll get an example yml file up to test
Josh Cox
@joshuacox
Oct 04 2017 15:49
should be building now
bah humbug failed already, that's gonna need some work
Daniel Honig
@dhonig
Oct 04 2017 17:01
trying to get the first few phases working