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

TypeError from upgrade (v4) #15812

Closed
internet-individual opened this issue May 23, 2019 · 8 comments
Closed

TypeError from upgrade (v4) #15812

internet-individual opened this issue May 23, 2019 · 8 comments
Labels
status: waiting for author Issue with insufficient information

Comments

@internet-individual
Copy link

In upgrading material v3.9.3 to v4.0.0 a TypeError happens. The error happens only in v4.0.0.0. The error implies that it's the useRefract function, but the error doesn't happen in v3.9.3.

TypeError: You provided an invalid object where a stream was expected. 
You can provide an Observable, Promise, Array, or Iterable.
    at Object.exports.subscribeTo (modules.js?hash=0c1c0a6460913c856cbe6c37e5c1600b8fa8d9c0:64720)
    at Object.from (modules.js?hash=0c1c0a6460913c856cbe6c37e5c1600b8fa8d9c0:66123)
    at data (modules.js?hash=0c1c0a6460913c856cbe6c37e5c1600b8fa8d9c0:63701)
    at createComponent (modules.js?hash=0c1c0a6460913c856cbe6c37e5c1600b8fa8d9c0:63702)
    at configureHook (modules.js?hash=0c1c0a6460913c856cbe6c37e5c1600b8fa8d9c0:63947)
    at modules.js?hash=0c1c0a6460913c856cbe6c37e5c1600b8fa8d9c0:63979
    at mountMemo (modules.js?hash=0c1c0a6460913c856cbe6c37e5c1600b8fa8d9c0:48850)
    at Object.useMemo (modules.js?hash=0c1c0a6460913c856cbe6c37e5c1600b8fa8d9c0:49059)
    at Object.useMemo (modules.js?hash=0c1c0a6460913c856cbe6c37e5c1600b8fa8d9c0:2645)
    at useRefract (modules.js?hash=0c1c0a6460913c856cbe6c37e5c1600b8fa8d9c0:63978)
Tech Version
Material-UI v3.9.3
@joshwooding joshwooding added the status: waiting for author Issue with insufficient information label May 23, 2019
@joshwooding
Copy link
Member

Can you provide a minimal reproduction? I would be surprised if Material-UI is directly causing this.

@internet-individual
Copy link
Author

It's only the upgrade to v4.0.0. The useRefract function is from refract. https://refract.js.org/
When upgrading the icons and styles, there isn't an issue. When going back to v3.9.3, the issue stops.
When commenting out the useRefract function after upgrading to v4.0.0, the issue stops.

@eps1lon
Copy link
Member

eps1lon commented May 24, 2019

@jwentwistle Please provide a minimal example that fails. Either via codesandbox or a standalone github repository.

@internet-individual
Copy link
Author

Okay. The code that doesn't work is here:
https://gitlab.com/jwentwistle/chaos/blob/master/imports/ui/discussions/discussions.js

Thank you for your help.

@oliviertassinari oliviertassinari added typescript and removed status: waiting for author Issue with insufficient information labels May 30, 2019
@eps1lon eps1lon removed the typescript label Jun 3, 2019
@eps1lon
Copy link
Member

eps1lon commented Jun 3, 2019

@jwentwistle Could you make a isolated repository? Try to reduce it as much as possible so that only react and material-ui dependencies are used.

@eps1lon eps1lon added the status: waiting for author Issue with insufficient information label Jun 3, 2019
@internet-individual
Copy link
Author

internet-individual commented Jun 5, 2019

It's an error that happens in that project. I don't think I can isolate it without making a separate project and I can't upgrade to the latest version because of that error. I think it has to do with refract interacting with material, but I don't know.

@internet-individual
Copy link
Author

There isn't a fix for that issue?

@eps1lon
Copy link
Member

eps1lon commented Jun 19, 2019

There isn't a fix for that issue?

Since this issue does not originate nor surfaces in material-ui code and we have no reproduction we won't actively work on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

4 participants