-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accounts button disabled #1815
Comments
#1816 |
Ok, just to note, underlying issue for people that encounter this is that I think it would be good to lock all versions by default (with vulcan:foobar@=1.8.x), since Vulcan user are used to go directly in the package list files anyway. |
Just to clarify, is this a recent issue? Do you know when it was introduced, or what caused it? |
Pretty sure it's also somehow related to the React 16 SSR changes, and it only appears in minified production builds. |
@luhagel can you clarify "related to ssr changes"? |
Yeah, my suspicion is that there's a data mismatch between client and server, leading to one version overwriting the other with the incorrect |
@luhagel or @eric-burel what is the current workaround for this? As mentioned the production build is in a waiting state and I am trying to find the cause. Any ideas for a workaround? |
@luhagel Which package versions are you using? The latest version? Nvm, I get it now. Master hasn't been updated, yet. I was so confused about the versioning. Disregard my question :) |
I'm pushing 1.8.4 which includes this fix. Let me know if it helps. |
The issue is resolved. I am closing this for now. |
Nvm, state change isn't working anymore. |
Does anyone have any potential fixes for this? I've been running into the state change issue. |
In the meantime you can use different routes or handle the state changes yourself: import { Components, registerComponent } from 'meteor/vulcan:core';
import React, { PropTypes, Component } from 'react';
import { FormattedMessage } from 'meteor/vulcan:i18n';
import Dropdown from 'react-bootstrap/lib/Dropdown';
import { STATES } from 'meteor/vulcan:accounts';
import { Link } from 'react-router';
const UsersLogIn = ({state}) =>
<div className="page accounts-page accounts-log-in">
<Components.AccountsLoginForm showSignUpLink={false}/>
<p className="accounts-prompt"><FormattedMessage id="accounts.dont_have_an_account"/> <Link to="/sign-up"><FormattedMessage id="accounts.sign_up_here"/></Link></p>
</div>
UsersLogIn.displayName = 'UsersLogIn';
registerComponent('UsersLogIn', UsersLogIn); import { Components, registerComponent } from 'meteor/vulcan:core';
import React, { PropTypes, Component } from 'react';
import { FormattedMessage } from 'meteor/vulcan:i18n';
import { STATES } from 'meteor/vulcan:accounts';
import { Link } from 'react-router';
const UsersSignUp = ({state}) =>
<div className="page accounts-page accounts-sign-up">
<Components.AccountsLoginForm formState={STATES.SIGN_UP} showSignInLink={false}/>
<p className="accounts-prompt"><FormattedMessage id="accounts.already_have_an_account"/> <Link to="/log-in"><FormattedMessage id="accounts.log_in_here"/></Link></p>
</div>
UsersSignUp.displayName = 'UsersSignUp';
registerComponent('UsersSignUp', UsersSignUp); |
I've opened an issue: facebook/react#12102 |
Yeah, I am handling this manually at the moment. Thanks for opening an issue, Sacha. |
Here's a fix for now: 6facf15 |
I had the same issue, which is now fixed by the update. |
I'm seeing this issue where My Any ideas? Can @SachaG explain why his above commit was supposed to fix this? Any guesses as to why it working in dev but not production? Also, I'm noticing that my login form including the |
Ok. I think I figured it out. I say it's the fault of that
I have re-written the
I removed the reliance on This is a small simple component. I propose we don't wait for a PR from it and simply include this component in vulcan-accounts. I could submit a PR for that next week if @SachaG agrees. My login error messages stopped working though when I pulled that latest commit so I'll have to fix that too but I think that's unrelated and might be due to my implementation of |
Oh nice! Yeah this would be a huge help, a PR would be great. Thanks for figuring this out, I've been struggling with this issue for a while… |
@nolandg any update on this? would you have time to submit a PR? |
Sorry for the delay. Let me know if there's any problems with it. I reset to a clean devel and it works fine for me in production mode. |
Hi,
The account buttons are disabled in production (app here), though they are working if I manually disable them in the React console.
It seems that the
Accounts.loginServicesConfigured()
events does not happen, so the buttons are never activated (waiting state here).I also have this empty collection in my DB:
meteor_accounts_loginServiceConfiguration
The bug appeared, of course, totally widly, the app use to work correctly.
Root URL seems correct too:
ROOT_URL: https://simply-charge-staging.herokuapp.com
The text was updated successfully, but these errors were encountered: