github repository: https://github.com/alisaeedcs/ali-portfolio
this is the error:
./components/experience.tsx:8:8
Type error: Could not find a declaration file for module 'react-vertical-timeline-component'. '/workspace/node_modules/react-vertical-timeline-component/dist-modules/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/react-vertical-timeline-component` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-vertical-timeline-component';`
6 | VerticalTimeline,
7 | VerticalTimelineElement,
8 | } from "react-vertical-timeline-component";
| ^
9 | import "react-vertical-timeline-component/style.min.css";
10 | import { experiencesData } from "@/lib/data";
11 | import { useSectionInView } from "@/lib/hooks";
Had a previous app platform that worked perfeclty, delete and remade and now its bugging out. Help appreciated.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Hi there!
As far as I can tell the package was missing from your package lock file, I’ve submitted a PR for this:
Also when you create the new app, you don’t have to specify a custom build command as you already have that defined in your package json file.
After merging that PR if you are still seeing the problem do this:
npm run build
line if it is there:I’ve just tried deploying your portfolio and it worked as described above:
Let me know how it goes!
- Bobby