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

Property 'groupBy' does not exist on type 'ObjectConstructor'. #74

Closed
xcollantes opened this issue Jan 21, 2024 · 3 comments
Closed

Property 'groupBy' does not exist on type 'ObjectConstructor'. #74

xcollantes opened this issue Jan 21, 2024 · 3 comments
Labels
bug Something isn't working P1 Potential damage to user experience.

Comments

@xcollantes
Copy link
Owner

In portfolio/components/ExperienceCards.tsx, error when deploying or running npm run builid.

Type error: Property 'groupBy' does not exist on type 'ObjectConstructor'.

  46 |   useEffect(() => {
  47 |     
> 48 |     const split = Object.groupBy(selected, (e: MetadataType) => e.articleType)
     |                          ^
  49 |     setWorkExps(split.WORKEXP)
  50 |     setBlogs(split.BLOG)
  51 |     console.log(split)
const split = Object.groupBy(selected, (e: MetadataType) => e.articleType)
@xcollantes
Copy link
Owner Author

@xcollantes
Copy link
Owner Author

The code will ship in TypeScript 5.4.

@xcollantes
Copy link
Owner Author

Fatal error in Safari browsers: #75

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P1 Potential damage to user experience.
Projects
None yet
Development

No branches or pull requests

1 participant