Using a combination of NextJs and typescript, I am encountering an issue when passing a correctly typed prop. The error that is displayed is as follows:
./pages/jobs.tsx:100:15
Type error: Type '{ job: jobType; key: number; handleTagClick: (tag: string) => void; }' is not assignable to type 'IntrinsicAttributes & jobType'.
Property 'job' does not exist on type 'IntrinsicAttributes & jobType'.
98 | filteredJobs.map((job) => (
99 | <JobComponent
> 100 | job={job}
| ^
101 | key={job.id}
102 | handleTagClick={handleTagClick}
103 | />
error Command failed with exit code 1.
To view the code causing this issue, visit: https://github.com/samrath2007/Internova