This repository has been archived by the owner on Jul 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 486
Failed to compile #112
Comments
Could you run the project by npm. Following below command to reinstall node modules too : rm -rf node_modules && npm i && npm start |
Thanks, works now! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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!
The text was updated successfully, but these errors were encountered: