Skip to content
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

Cannot read property '@global' of undefined #16

Closed
eddielisands opened this issue Aug 29, 2018 · 4 comments
Closed

Cannot read property '@global' of undefined #16

eddielisands opened this issue Aug 29, 2018 · 4 comments

Comments

@eddielisands
Copy link

I got the TypeError: Cannot read property '@global' of undefined at handleNestedGlobalContainerRule (node_modules/jss-global/lib/index.js:125:20) after upgrading the package from 1.10.1_9 to 1.11.2.

I followed those steps to install the npm modules and the error is still there.
$ meteor add erikdakoda:vulcan-material-ui

$ meteor npm install --save @material-ui/core
$ meteor npm install --save mdi-material-ui
$ meteor npm install --save react-autosuggest
$ meteor npm install --save autosuggest-highlight

@darr1s
Copy link

darr1s commented Aug 29, 2018

+1.

I've tried to manually meteor npm install --save @meteor-ui/[email protected] and problem persists.

@eric-burel
Copy link
Contributor

eric-burel commented Aug 30, 2018

Related issue: mui/material-ui#8652
I am also looking for a fix. Might be related to theme not being correctly defined for some components, eg for the AccountsForm.

Edit: see #20, this issue is indeed related to mistakes in the styles, like bad field name of a theme property.

I fixed one of them but there can be some left. To fix this, I would advise to locally copy this package in your app packages folder. This way you'll be able to add console.log in the styles methods of components that raise this issue and fix the problem. You can also use a 2 repo install.

@eddielisands
Copy link
Author

Yes, the issue is from the "Components.AccountsLoginForm", I don't get the error if I commented that component out.

@eddielisands
Copy link
Author

Tested with the latest update and it was fixed 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants