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: s.t.match is not a function when trying to use style for Column heading #149

Open
reyansh25 opened this issue Jan 19, 2021 · 4 comments

Comments

@reyansh25
Copy link

My reason: Getting above error when trying to use style attribute for column headings

Steps to reproduce:

const excelDetailColumns = [
  {
    value: '#',
    widthPx: 160,
    style: {
      border: {
        top: { style: 'thin', color: { rgb: 'FF000000' } },
        bottom: { style: 'thin', color: { rgb: 'FF000000' } },
        left: { style: 'thin', color: { rgb: 'FF000000' } },
        right: { style: 'thin', color: { rgb: 'FF000000' } },
      },
    },
  },
  'Date',
  'Status',
];

Lib Version: "react-export-excel": "^0.5.3",

@rodrilima
Copy link

+1

2 similar comments
@IhorKurylov
Copy link

+1

@bryantamayo1
Copy link

+1

@mishapotap
Copy link

@reyansh25 Check your dependencies, you also need "xlsx" and "file-saver" packages to be installed. At least worked for me

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

5 participants