Coder Social home page Coder Social logo

Comments (19)

brendonlamb avatar brendonlamb commented on June 19, 2024

In your main meteor install:
.meteor\packages\zetoff_accounts-material-ui\0.0.4\web.browser

You can edit the "check_npm.js" file, change line 3 to:

'material-ui': '0.16.1'

FYI this isn't really recommended but for the sake of testing- a quick look at the "main.jsx" (in that same folder) it does look like the following:

import {RaisedButton, FlatButton, FontIcon, TextField, Divider} from 'material-ui';

Should be compatible with MUI 0.16.1 - @PolGuixe could you confirm this and if you're confident update the meteor package?

Regardless- great work!

edit- not sure if this is a 0.16.1 incompatibility or something i'm doing wrong but:

modules.js?hash=3d61712…:21993 Uncaught Error: Objects are not valid as a React child (found: object with keys {message, type}). If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons.(…)

When i click submit on the Register form.

edit x2 - Looks like wiping node_modules made things work.

I get a warning in the console instead of a error:
`check-npm-versions.js:53 WARNING: npm peer requirements (for zetoff:accounts-material-ui) not installed:

So that's a plus, and the react error is gone too.

from accounts-material-ui.

PolGuixe avatar PolGuixe commented on June 19, 2024

@brendonlamb thanks for all the info! I'll try to fix it today. ;)

from accounts-material-ui.

PolGuixe avatar PolGuixe commented on June 19, 2024

@brendonlamb let me know if you have any issues with v.0.0.6

from accounts-material-ui.

PolGuixe avatar PolGuixe commented on June 19, 2024

@brendonlamb I don't understand:

FYI this isn't really recommended but for the sake of testing- a quick look at the "main.jsx" (in that same folder) it does look like the following:
import {RaisedButton, FlatButton, FontIcon, TextField, Divider} from 'material-ui';

from accounts-material-ui.

brendonlamb avatar brendonlamb commented on June 19, 2024

@PolGuixe i was just noting that those MUI components:
import {RaisedButton, FlatButton, FontIcon, TextField, Divider} from 'material-ui';

Are valid within MUI 0.16.2 (as far as i could tell)

Trying v.0.0.6 now!

from accounts-material-ui.

PolGuixe avatar PolGuixe commented on June 19, 2024

@brendonlamb would probably give you problems. I am just working on v0.0.7
Give 5 min. :)

from accounts-material-ui.

brendonlamb avatar brendonlamb commented on June 19, 2024

Yep I'm seeing it :D - no worries!

image

from accounts-material-ui.

PolGuixe avatar PolGuixe commented on June 19, 2024

published. Try if v0.0.7 works for you.

from accounts-material-ui.

brendonlamb avatar brendonlamb commented on June 19, 2024

Hmm- seemed like it was working fine at first but it seems like theres some larger issues. I can't register or change password. Just get piles of

Uncaught Error: Objects are not valid as a React child (found: object with keys {message, type}). If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons.(…)

(client-side of course)

Just confirming, i'm using:

    "babel-plugin-transform-class-properties": "^6.10.2",
    "material-ui": "^0.16.2",
    "meteor-node-stubs": "~0.2.0",
    "react": "^15.3.2",
    "react-addons-pure-render-mixin": "^15.3.2",
    "react-dom": "^15.3.2",
    "react-mounter": "^1.2.0",
    "react-tap-event-plugin": "^1.0.0"

My meteor packages looks like:

react-meteor-data
accounts-password
zetoff:accounts-material-ui

I've been able to make a super-basic login component myself w/ the above packages, but it's no where near as feature complete as yours appears.

from accounts-material-ui.

philcruz avatar philcruz commented on June 19, 2024

I was getting similar errors. I mentioned in #8. For me, it turns out there were issues in std:accounts-ui. I applied this PR (studiointeract/accounts-ui#75) to a local version of the package and it fixed it.

from accounts-material-ui.

PolGuixe avatar PolGuixe commented on June 19, 2024

When do you get this error? At which event of form?

from accounts-material-ui.

brendonlamb avatar brendonlamb commented on June 19, 2024

It looks like the same issue as #8 @philcruz mentioned.

That said- the std:accounts-ui PR that was mentioned didn't fix it for me.

Really not sure what's going on :/

from accounts-material-ui.

PolGuixe avatar PolGuixe commented on June 19, 2024

@brendonlamb what event causes the error? or is it right away?

from accounts-material-ui.

brendonlamb avatar brendonlamb commented on June 19, 2024

Steps:

Login, Log out. Now try logging back in.

image

Once i get this error i can't do anything, logging in/out, register, everything breaks until a full page reload.

from accounts-material-ui.

philcruz avatar philcruz commented on June 19, 2024

I tried updating and I get

The following top-level dependencies were not updated to the very latest version available:

  • zetoff:accounts-material-ui 0.0.4 (0.0.7 is available)

I removed the package and added it back but it only adds 0.0.4. What am I missing?

from accounts-material-ui.

PolGuixe avatar PolGuixe commented on June 19, 2024

For better tracking. Can we create two different issues?

:)

from accounts-material-ui.

PolGuixe avatar PolGuixe commented on June 19, 2024

@philcruz I moved your issue here: #13

from accounts-material-ui.

PolGuixe avatar PolGuixe commented on June 19, 2024

@brendonlamb I moved your issue here: #14

from accounts-material-ui.

PolGuixe avatar PolGuixe commented on June 19, 2024

I think this one can be closed now.

from accounts-material-ui.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.