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

[material-ui][TableRow] Exported variable 'StyledTableRow' has or is using name 'UNDEFINED_VOID_ONLY' #42020

Open
danghieuliem opened this issue Apr 25, 2024 · 4 comments
Assignees
Labels
component: table This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material status: waiting for maintainer These issues haven't been looked at yet by a maintainer

Comments

@danghieuliem
Copy link

danghieuliem commented Apr 25, 2024

Steps to reproduce

Link to live example: (stackblitz)

./style.ts
code

Screenshot 2024-04-25 at 11 13 47

Current behavior

No response

Expected behavior

No response

Context

No response

Your environment

npx @mui/envinfo
 System:
    OS: macOS 14.4.1
  Binaries:
    Node: 18.19.0 - ~/.nvm/versions/node/v18.19.0/bin/node
    npm: 10.2.3 - ~/.nvm/versions/node/v18.19.0/bin/npm
    pnpm: Not Found
  Browsers:
    Chrome: 124.0.6367.62
    Edge: 124.0.2478.51
    Safari: 17.4.1
  npmPackages:
    @emotion/react: ^11.11.1 => 11.11.4 
    @emotion/styled: ^11.11.0 => 11.11.5 
    @mui/base:  5.0.0-beta.40 
    @mui/core-downloads-tracker:  5.15.15 
    @mui/icons-material: ^5.15.15 => 5.15.15 
    @mui/lab: ^5.0.0-alpha.154 => 5.0.0-alpha.170 
    @mui/material: ^5.15.15 => 5.15.15 
    @mui/private-theming:  5.15.14 
    @mui/styled-engine:  5.15.14 
    @mui/system:  5.15.15 
    @mui/types:  7.2.14 
    @mui/utils:  5.15.14 
    @mui/x-date-pickers: ^6.19.5 => 6.19.9 
    @types/react: ^18 => 18.2.79 
    react: ^18 => 18.2.0 
    react-dom: ^18 => 18.2.0 
    typescript: ^5.2.2 => 5.4.5 

Search keywords: TableRow, styled, UNDEFINED_VOID_ONLY, next export

@danghieuliem danghieuliem added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Apr 25, 2024
@zannager zannager added component: table This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material labels Apr 25, 2024
@mj12albert
Copy link
Member

@danghieuliem I can't reproduce this in your stackblitz - did you screenshot your error from there?

@mj12albert mj12albert 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 Apr 29, 2024
@danghieuliem
Copy link
Author

Hi @mj12albert ! This error is from my local source code. It throws an error when I export static files in Next.js.

Screenshot 2024-05-04 at 09 16 26

@github-actions github-actions bot added status: waiting for maintainer These issues haven't been looked at yet by a maintainer and removed status: waiting for author Issue with insufficient information labels May 4, 2024
@pompep
Copy link

pompep commented May 6, 2024

@danghieuliem until DefinitelyTyped/DefinitelyTyped/pull/69341 is not merged, react type redeclaration may help you

declare const UNDEFINED_VOID_ONLY: unique symbol;
declare module "react" {
   export type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
}

@danghieuliem
Copy link
Author

@danghieuliem until DefinitelyTyped/DefinitelyTyped/pull/69341 is not merged, react type redeclaration may help you

declare const UNDEFINED_VOID_ONLY: unique symbol;
declare module "react" {
   export type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
}

It work for me. Thank you! @pompep

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: table This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material status: waiting for maintainer These issues haven't been looked at yet by a maintainer
Projects
None yet
Development

No branches or pull requests

5 participants