When running 'yarn start' for this portion of the project, it gives "Starting the development server". After a while, it says "Compiling" before failing with the following error:
Failed to compile.
/home/tking/work/src/github.com/TylerJKing/react-social-network/src/components/post/PostComponent.tsx
(415,50): Argument of type '(match: string, i: string) => Element' is not assignable to parameter of type '(match: string, index: number) => string | Element'.
Types of parameters 'i' and 'index' are incompatible.
Type 'number' is not assignable to type 'string'.
Below is what I have on line 415 in the postcomponent.tsx file:
When running 'yarn start' for this portion of the project, it gives "Starting the development server". After a while, it says "Compiling" before failing with the following error:
Failed to compile.
/home/tking/work/src/github.com/TylerJKing/react-social-network/src/components/post/PostComponent.tsx (415,50): Argument of type '(match: string, i: string) => Element' is not assignable to parameter of type '(match: string, index: number) => string | Element'. Types of parameters 'i' and 'index' are incompatible. Type 'number' is not assignable to type 'string'.
Below is what I have on line 415 in the postcomponent.tsx file:
Thanks!