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

Bug: Table defaultProp warning in output #170

Open
SarfDime opened this issue Dec 11, 2024 · 1 comment
Open

Bug: Table defaultProp warning in output #170

SarfDime opened this issue Dec 11, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@SarfDime
Copy link

Describe the bug

  • A warning shows in the output

To Reproduce

  • Run the default command npx typescript-coverage-report

Expected behaviour

  • No warnings

Screenshots

Screenshot from 2024-12-11 15-55-06

Environment

  • Tool version: latest
  • OS: any
  • Node version: v20.12.2 (npm v10.5.0)]

Additional context

Full warning

`Warning: Table: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

  • at Table (/opt/build/repo/node_modules/semantic-ui-react/dist/commonjs/collections/Table/Table.js:38:24)
  • at div
  • at Container (/opt/build/repo/node_modules/semantic-ui-react/dist/commonjs/elements/Container/Container.js:22:24)
  • at SummaryPage (/opt/build/repo/node_modules/typescript-coverage-report/dist/components/SummaryPage/SummaryPage.js:11:25)

Warning: TableHeader: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

  • at TableHeader (/opt/build/repo/node_modules/semantic-ui-react/dist/commonjs/collections/Table/TableHeader.js:22:24)
  • at table
  • at Table (/opt/build/repo/node_modules/semantic-ui-react/dist/commonjs/collections/Table/Table.js:38:24)
  • at div
  • at Container (/opt/build/repo/node_modules/semantic-ui-react/dist/commonjs/elements/Container/Container.js:22:24)
  • at SummaryPage (/opt/build/repo/node_modules/typescript-coverage-report/dist/components/SummaryPage/SummaryPage.js:11:25)

Warning: TableRow: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

  • at TableRow (/opt/build/repo/node_modules/semantic-ui-react/dist/commonjs/collections/Table/TableRow.js:28:22)
  • at thead
  • at TableHeader (/opt/build/repo/node_modules/semantic-ui-react/dist/commonjs/collections/Table/TableHeader.js:22:24)
  • at table
  • at Table (/opt/build/repo/node_modules/semantic-ui-react/dist/commonjs/collections/Table/Table.js:38:24)
  • at div
  • at Container (/opt/build/repo/node_modules/semantic-ui-react/dist/commonjs/elements/Container/Container.js:22:24)
  • at SummaryPage (/opt/build/repo/node_modules/typescript-coverage-report/dist/components/SummaryPage/SummaryPage.js:11:25)

Warning: TableHeaderCell: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

  • at TableHeaderCell (/opt/build/repo/node_modules/semantic-ui-react/dist/commonjs/collections/Table/TableHeaderCell.js:24:18)
  • at tr
  • at TableRow (/opt/build/repo/node_modules/semantic-ui-react/dist/commonjs/collections/Table/TableRow.js:28:22)
  • at thead
  • at TableHeader (/opt/build/repo/node_modules/semantic-ui-react/dist/commonjs/collections/Table/TableHeader.js:22:24)
  • at table
  • at Table (/opt/build/repo/node_modules/semantic-ui-react/dist/commonjs/collections/Table/Table.js:38:24)
  • at div
  • at Container (/opt/build/repo/node_modules/semantic-ui-react/dist/commonjs/elements/Container/Container.js:22:24)
  • at SummaryPage (/opt/build/repo/node_modules/typescript-coverage-report/dist/components/SummaryPage/SummaryPage.js:11:25)

Warning: TableCell: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

  • at TableCell (/opt/build/repo/node_modules/semantic-ui-react/dist/commonjs/collections/Table/TableCell.js:26:22)
  • at TableHeaderCell (/opt/build/repo/node_modules/semantic-ui-react/dist/commonjs/collections/Table/TableHeaderCell.js:24:18)
  • at tr
  • at TableRow (/opt/build/repo/node_modules/semantic-ui-react/dist/commonjs/collections/Table/TableRow.js:28:22)
  • at thead
  • at TableHeader (/opt/build/repo/node_modules/semantic-ui-react/dist/commonjs/collections/Table/TableHeader.js:22:24)
  • at table
  • at Table (/opt/build/repo/node_modules/semantic-ui-react/dist/commonjs/collections/Table/Table.js:38:24)
  • at div
  • at Container (/opt/build/repo/node_modules/semantic-ui-react/dist/commonjs/elements/Container/Container.js:22:24)
  • at SummaryPage (/opt/build/repo/node_modules/typescript-coverage-report/dist/components/SummaryPage/SummaryPage.js:11:25)

Warning: TableBody: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

  • at TableBody (/opt/build/repo/node_modules/semantic-ui-react/dist/commonjs/collections/Table/TableBody.js:19:24)
  • at table
  • at Table (/opt/build/repo/node_modules/semantic-ui-react/dist/commonjs/collections/Table/Table.js:38:24)
  • at div
  • at Container (/opt/build/repo/node_modules/semantic-ui-react/dist/commonjs/elements/Container/Container.js:22:24)
  • at SummaryPage (/opt/build/repo/node_modules/typescript-coverage-report/dist/components/SummaryPage/SummaryPage.js:11:25)`
@SarfDime SarfDime added the help wanted Extra attention is needed label Dec 11, 2024
@aderiushev
Copy link

up, same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants