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: Cannot read properties of undefined (reading 'outlined') #35818

Closed
2 tasks done
ZeeshanAhmadKhalil opened this issue Jan 13, 2023 · 7 comments
Closed
2 tasks done
Assignees
Labels
component: CircularProgress The React component support: question Community support but can be turned into an improvement

Comments

@ZeeshanAhmadKhalil
Copy link

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 🕹

Steps:

  1. create a next js project.
  2. install material UI and joy packages init.
  3. create a merged theme as mentioned in Case A
  4. Use `

Current behavior 😯

When using <CircularProgress/> as follows:

import CircularProgress from '@mui/joy/CircularProgress';

<CircularProgress
  variant='outlined'
  determinate
  size="lg"
  value={20}
/>

It's giving the following error:

TypeError: Cannot read properties of undefined (reading 'outlined')
eval
node_modules/@mui/joy/CircularProgress/CircularProgress.js (53:0)

Expected behavior 🤔

It should show the circular progress bar link we have in the documentation example.

Context 🔦

I am creating a circular chart using this progress bar. But it's throwing this error in the project, causing much delay in task completion.

Your environment 🌎

Mac OS Ventura

Node js
v16.17.1

npm
8.15.0

next
12.2.5

@ZeeshanAhmadKhalil ZeeshanAhmadKhalil added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jan 13, 2023
@ZeeshanAhmadKhalil
Copy link
Author

Also checked on the latest LTS version of the node v18.13.0
still same error

@zannager zannager added the component: CircularProgress The React component label Jan 13, 2023
@siriwatknp siriwatknp added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 13, 2023
@siriwatknp
Copy link
Member

Can you share a CodeSandbox or a repository that I can take a look?

@github-actions github-actions bot removed the status: waiting for author Issue with insufficient information label Jan 13, 2023
@ZeeshanAhmadKhalil
Copy link
Author

ZeeshanAhmadKhalil commented Jan 13, 2023

i used an external package for now
will create a new repo and share.

@Faridmurzone
Copy link

Faridmurzone commented Jan 17, 2023

the same thing happened to me today with Textarea component (also Joy) and nextjs

Versions:

    "next": "13.1.1",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "@mui/joy": "^5.0.0-alpha.62",
    "@emotion/react": "^11.10.5",
    "@emotion/styled": "^11.10.5",

image

Edit: I already solved the problem... its just because i was using joy ui and material ui togheter.
The solution:
https://mui.com/joy-ui/guides/using-joy-ui-and-material-ui-together/

@siriwatknp
Copy link
Member

siriwatknp commented Jan 17, 2023

@Faridmurzone

Please share a CodeSandbox or a repository that I can take a look.

@Faridmurzone
Copy link

Thank you @siriwatknp , already solved this problem with this info:
-> #33275
-> https://mui.com/joy-ui/guides/using-joy-ui-and-material-ui-together/

@siriwatknp siriwatknp added the support: question Community support but can be turned into an improvement label Jan 25, 2023
@DrewVaive-GECU
Copy link

DrewVaive-GECU commented Jan 11, 2024

the link is not working now for this solution
here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: CircularProgress The React component support: question Community support but can be turned into an improvement
Projects
None yet
Development

No branches or pull requests

5 participants