These are chat archives for reactioncommerce/reaction

21st
May 2018
Prawx
@Prawx
May 21 2018 05:19
i keep getting Error: App failed to start every time i try to run reaction for the first time on debian. annoying as hell
Guus Huizen
@iAmGuus
May 21 2018 07:47
@LabN36 probably, yes.
Prawx
@Prawx
May 21 2018 15:13
is there someplace where i can browse templates or themes for reaction?
also, in my settings if I go to shop and try to change ANY value and click save, it does not save. at all. what am i doing wrong
Loan Laux
@loanlaux
May 21 2018 15:14
@Prawx There's no theme marketplace for Reaction as of now. As for the shop settings, that's a known bug that will be fixed in version 1.12.
Prawx
@Prawx
May 21 2018 15:15
Is there a workaround? should I downgrade? how the heck do I get my shop up n running with this bug! ;(
@loanlaux
Guus Huizen
@iAmGuus
May 21 2018 15:16
No not yet unfortunately.
Oh oops.
Prawx
@Prawx
May 21 2018 15:17
so you're telling me I'm just screwed? like I can't actually set up my shop until it's fixed?
Loan Laux
@loanlaux
May 21 2018 15:17
There's a quick fix available here: reactioncommerce/reaction#4202 (see @nnnnat's comment)
Prawx
@Prawx
May 21 2018 15:17
oh thank god
Guus Huizen
@iAmGuus
May 21 2018 15:17
I didnt see the new messages yet, dont mind me.
Prawx
@Prawx
May 21 2018 15:19
wait so you're saying i should remove all of this in that file https://i.imgur.com/z3grqmT.png
Loan Laux
@loanlaux
May 21 2018 15:20
Just comment out the call to lazyLoadSlugify and statically import either slugify or transliteration at the top of the file, based on your needs
Prawx
@Prawx
May 21 2018 15:22
Okay I did it. Gonna see if it worked.
thanks for the help guys.
I'm really new to reaction and have so many questions, but feel that google searching like I normally do hasn't been as effective with reaction.
just can't find the answers I need.
is there an easy way to set landing page in reaction?
Loan Laux
@loanlaux
May 21 2018 15:28
Prawx
@Prawx
May 21 2018 15:28
Cool! Thanks.
Also, since there's no "marketplace" for themes, is there still any way at all to find themes or templates and try them out? like nobody posts templates or anything?
Loan Laux
@loanlaux
May 21 2018 15:30
If you need an example, I would suggest checking out my example theme where I replace the default homepage by one that features a slider and more: https://github.com/loanlaux/reaction-hydrotik-plugin
Prawx
@Prawx
May 21 2018 15:30
Okay, also I commented out the entire dynamic import and then imported slugify at the top of the file, but still no luck. Can't change my timezone or my shop settings
I click save then the save button is just grayed out until I switch tabs and then if I go back it's all the default settings.
Loan Laux
@loanlaux
May 21 2018 15:31
The Reaction Commerce community isn't quite on par with the WordPress one for example. So yeah, not a lot of ready-made themes available out there. There's no paid theme/plugin ecosystem at all. Everything is still pretty early stage but that's why now's the right time to get in ;)
Are you getting any error in your browser console?
Prawx
@Prawx
May 21 2018 15:32
Uncaught TypeError: Promise.await is not a function
same thing from that thread u guys sent
Loan Laux
@loanlaux
May 21 2018 15:32
Can you send a Gist with your custom version of that file?
Rajagopal Natarajan
@haxplorer
May 21 2018 15:34
@loanlaux Who would be the right person to reach out to to understand the rationale behind choosing Meteor for a commerce platform(since most stores don’t need realtime reactivity)?
Prawx
@Prawx
May 21 2018 15:36
i think they say why somewhere on their website in about or docs pages
Loan Laux
@loanlaux
May 21 2018 15:37
@haxplorer I would reach out to @aaronjudd, @zenweasel, @machikoyasuda or @jshimko, to name a few
And yes, I recall having seen an explanatory blog post or something but I can't find it anymore. No idea where it was published.
maybe this is the one
Loan Laux
@loanlaux
May 21 2018 15:38
Yep, looks like it!
Prawx
@Prawx
May 21 2018 15:38
any luck on the error, loanlaux?
Loan Laux
@loanlaux
May 21 2018 15:39
Yes, you don't really need to comment out the function declaration in itself, but rather comment out the call to Promise.await(lazyLoadSlugify()); on line 221 @Prawx
TL ; DR: you just need to comment out line 14 (let slugify;) and line 221.
And of course leave your "manual" import of slugify in place
Prawx
@Prawx
May 21 2018 15:40
makes sense.
do i have to restart my reaction to test these changes?
Loan Laux
@loanlaux
May 21 2018 15:41
It will restart by itself
Prawx
@Prawx
May 21 2018 15:47
I was still getting the error so I'm gonna try a manual restart and see if it worked.
One random sidenote, everytime I run reaction I get this while starting up
app/client/plugins.less.css: warn: There are some @import rules those are not taking effect as they are required to be in the beginning of the file.
but it still starts up successfully at the end
does it mean anything significant?
Loan Laux
@loanlaux
May 21 2018 15:50
Yeah everybody's getting this since we've updated the LESS build tool. It's nothing critical at all. I haven't experienced any missing CSS due to it. Of course it would be great to have this fixed but there are bigger issues to work on at the moment, so it'll probably have to wait.
Prawx
@Prawx
May 21 2018 15:51
Okay cool. I'm gonna work on trying out your custom template and stuff now. Other than that, I have one more question. Is it required or beneficial to setup my reaction.json settings file in private/settings ?
because I did not. and I'm wondering if I should have
Loan Laux
@loanlaux
May 21 2018 15:52
Not required
Prawx
@Prawx
May 21 2018 15:52
alrighty
really appreciate you taking the time to answer all these questions, you have no idea how much you've helped in such a short amount of time.
I would've been stuck here googling for 12 hours straight and probably still hardly scratch the surface at the end of the day.
Loan Laux
@loanlaux
May 21 2018 15:53
Pleasure's all mine!
Prawx
@Prawx
May 21 2018 15:53
thanks man! :)
is it normal that reaction takes 3-5 minutes to restart every time?
Loan Laux
@loanlaux
May 21 2018 15:58
Yes, that's unfortunately normal
But you might want to look into https://github.com/reactioncommerce/reaction-next-starterkit to get a sense of what's coming, which will greatly improve this development reload time
Prawx
@Prawx
May 21 2018 16:00
ooh awesome!
hey so - installing the template you sent me. it's as simple as drag + drop into public folder?
Loan Laux
@loanlaux
May 21 2018 16:00
You might want to read the installation instructions in full :)
They're in the README.md file
Rajagopal Natarajan
@haxplorer
May 21 2018 16:04
Thanks @loanlaux and @Prawx
Prawx
@Prawx
May 21 2018 16:14
hey where do I set my site's URL? like if I invite myself as the shop manager, the email url from the template is literally localhost:3000, like that's what opens in my browser
Loan Laux
@loanlaux
May 21 2018 16:14
You can set it up in the Shops collection using your MongoDB client
It's under the domains field
Prawx
@Prawx
May 21 2018 16:16
default DB is meteor right?
Loan Laux
@loanlaux
May 21 2018 16:16
Correct
Prawx
@Prawx
May 21 2018 16:28
I'm not sure what heroku is and I've never used it - but is it required to install your template?
I did all of the updating and upgrading and git commands you put, and drag+dropped the public folder from the template into my own so far.
Loan Laux
@loanlaux
May 21 2018 16:28
Absolutely not, this part was actually inherited from the base repo I had forked at the time
Prawx
@Prawx
May 21 2018 16:28
feel like I'm missing something or not understanding somethin
should i just put all the files from the git into my reaction project?
Loan Laux
@loanlaux
May 21 2018 16:29
Yes, and you should install Slick
Appologies, I just read the readme again and it definitely lacks clarity
Prawx
@Prawx
May 21 2018 16:31
is it just npm install react-slick
is that the correct one?
Loan Laux
@loanlaux
May 21 2018 16:33
My bad, no. Dependencies are now installed automatically on startup. No need to do anything actually. Just drop the folder into /imports/plugins/custom, do a reaction reset -n && reaction and you'll be good to go
Prawx
@Prawx
May 21 2018 16:34
aw damn I already drag+ dropped all the files and did some overwriting like an idiot
Loan Laux
@loanlaux
May 21 2018 16:34
Beware, your database will be wiped by reaction reset so you might want to save any changes made to Shops or Products to a JSON file that you'll put in /private/data
Not a problem, but yeah that was the old way of doing things. Now images are also automatically copied over to /public/plugins
Sorry for the confusion
Prawx
@Prawx
May 21 2018 16:35
so should I worry about what I just did and try to undo it?
before continuing
Loan Laux
@loanlaux
May 21 2018 16:35
No, it's not a problem at all
Prawx
@Prawx
May 21 2018 16:35
phew.
So put the master folder in the custom folder. Then reset.
gonna do that.
Loan Laux
@loanlaux
May 21 2018 16:36
Correct
Just updated the readme, @Prawx. Thanks for the heads-up!
Prawx
@Prawx
May 21 2018 16:42
you should include a disclaimer after the reset command so people know it completely resets the database
but awesome - glad I could help!
Loan Laux
@loanlaux
May 21 2018 16:42
You're right, will do
Prawx
@Prawx
May 21 2018 17:17
havent had success yet
@loanlaux
i commented out that line, trying to restart now
Sophie He
@sophiehe
May 21 2018 18:46

Artlimes, a global art marketplace, is now running on Reaction 1.11! If you haven't already, be sure to check out artlimes.com.

We're thankful for all the contributions @lcampanis and his team have made to Reaction. Want to support a partner from the community? Donate to Artlimes' Crowdcube campaign today: https://crowdcube.com/artlimes

Loan Laux
@loanlaux
May 21 2018 19:46
Nice job, @lcampanis!
Lorenzo Campanis
@lcampanis
May 21 2018 19:47
Thank you! Couldn't have done it without you!
Loan Laux
@loanlaux
May 21 2018 19:59
@Prawx Looks like somehow dependencies of the plugin weren't installed on restart. Try and cd to the root of the plugin and do npm install.
Prawx
@Prawx
May 21 2018 20:21
now i get this whenever i try to start reaction. i ended up just doing a fresh install after getting frustrated with it not starting. this is what it's giving me now https://gist.github.com/Prawx/143ed710262ccfc72febc523efeb6e69
@loanlaux
literally reinstalled everything fresh install on debian
Loan Laux
@loanlaux
May 21 2018 20:27
Wow, yeah that's brutal. I don't believe I've seen this error before. Are you sure it's related to my theme?
Prawx
@Prawx
May 21 2018 20:36
oh no no no it's not related to your theme.
Loan Laux
@loanlaux
May 21 2018 20:36
Well regardless, it's pretty inexplicable. Is that the whole error message?
Prawx
@Prawx
May 21 2018 20:36
But for whatever reason I started getting that error, so I got fed up and completely reinstalled my OS from scratch on this VPS, reinstalled EVERYTHING all the dependencies, meteor, reaction cli, all that jazz, and i'm getting it again
currently just a fresh install of reaction on debian, nothing added or changed.
here I'm gonna private message you instead