-
Notifications
You must be signed in to change notification settings - Fork 164
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
Does the react-vertical-timeline-component doesn't work in latest next.js? #171
Comments
Yes,I’ve been done with it, but now the issue is the vertical timeline
doesn’t have animation. Ao when I refresh the page, there is no animation
at all, how can i solve this issue?
Sel, 28 Nov 2023 pukul 20.17 Shirshakkandel ***@***.***>
menulis:
… image.png (view on web)
<https://github.com/stephane-monnot/react-vertical-timeline/assets/64880594/b807bbb3-516e-4802-aacc-3c34e3f23dac>
I have also faced this problem and it fixed when I use visible={true} in
VerticalTimelineElement
—
Reply to this email directly, view it on GitHub
<#171 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BD6VY75E25RX6V3IREQF4ILYGXP6VAVCNFSM6AAAAAA72TTGU6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRZHAZDGMRUHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Thanks so much, Appreciate it bro
Sel, 28 Nov 2023 pukul 20.39 Shirshakkandel ***@***.***>
menulis:
… image.png (view on web)
<https://github.com/stephane-monnot/react-vertical-timeline/assets/64880594/cbd3be56-8772-4efb-b977-3e1b2d704a49>
Yes, i have seen it and fixed it by using inView which is true only when
the experience section is in view.
—
Reply to this email directly, view it on GitHub
<#171 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BD6VY7ZJBKBU3HEIP7IFQ3TYGXSQDAVCNFSM6AAAAAA72TTGU6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRZHA3DMOBWHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Do we only could host once (for free) in vercel like in github , or we
could host it all the time we need?
Sel, 28 Nov 2023 pukul 20.39 Shirshakkandel ***@***.***>
menulis:
… image.png (view on web)
<https://github.com/stephane-monnot/react-vertical-timeline/assets/64880594/cbd3be56-8772-4efb-b977-3e1b2d704a49>
Yes, i have seen it and fixed it by using inView which is true only when
the experience section is in view.
—
Reply to this email directly, view it on GitHub
<#171 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BD6VY7ZJBKBU3HEIP7IFQ3TYGXSQDAVCNFSM6AAAAAA72TTGU6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRZHA3DMOBWHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
It needs to be updated to be compatible with Next.js v14.. Downgrading to next.js 13.4.8 and the animations work as expected |
with nextjs14, got also a warning in the console : this comes as soon as you add a in your page (client site) seems some code as to be reviewed to be full compliant with Nextjs14. Unfortunatly |
@jeromeSH26 an easy fix for this would be to parse in additional prop in your
And set
This would remove the warning |
This warning message indicates that there are some extra attributes on the HTML element that Next.js received from the server that it does not recognize. These attributes are added by various browser extensions, plugins, or toolbars that modify the HTML of the page. This is usually caused by an extension passing these extra attributes with your code when it is executed on the browser trying to interact with the UI, this creates a mismatch between what was rendered on the server and what is rendered on the client. In your case, the attributes data-new-gr-c-s-check-loaded, data-gr-ext-installed, and cz-shortcut-listen are likely being added by one or more browser extensions that are installed in your browser. These attributes are not recognized by Next.js, which is why it is warning you about them. You can suppress hydration warnings by setting suppressHydrationWarning to true in the opening tag in which these attributes are being added: |
@Shirshakkandel Thank you! I was having an odd issue where my dev server instance wasn't showing my |
I also faced the same error recently. What I did ? : I reinstalled the package by running npm i react-vertical-timeline-component. |
I did a small workaround to fix this problem and keep the cool animation, take a look at my code if you wish :) hope it helps! https://github.com/roby-codes/robert-kovacs-portfolio/blob/master/src/components/experience.tsx |
I'm using vertical-timeline-component for my next.js 14 portfolio site the image for the icon is not fitting into the icon, i'm getting it as help me to fix this. import React from "react"; const Top = styled.div @media only screen and (max-width: 768px) { const Name = styled.div` @media only screen and (max-width: 768px) { @media only screen and (max-width: 768px) { @media only screen and (max-width: 768px) { const Description = styled.div const EducationCard = ( {education}: {education: any} ) => { export default EducationCard |
Hello guys, for people who are doing the portfolio project from ByteGrad or want to use this pkg with nextjs 14.2.5 I solved it by copy pasting the components into my own project and using the latest dependencies versions of ("react-intersection-observer": "^9.13.0") and ("classnames": "^2.5.1"), after doing that and fixing type issues with typescript I could use it normally without any extra code. I created a folder in components and put everything related to this pkg there: Then in the project I'm using it normally.
If someone is interested, just check out the code on my portfolio repo. |
"use client";
import React from "react";
import SectionHeading from "./section-heading";
import { VerticalTimeline, VerticalTimelineElement } from 'react-vertical-timeline-component';
import 'react-vertical-timeline-component/style.min.css';
import { experiencesData } from "@/lib/data";
import { useSectionInView } from "@/lib/hooks";
import { useTheme } from "@/context/theme-context";
export default function Experience() {
const { ref } = useSectionInView("Experience");
const { theme } = useTheme();
return (
My experience
{experiencesData.map((item, index) => (
<React.Fragment key={index}>
<VerticalTimelineElement
contentStyle={{
background:
theme === "light" ? "#f3f4f6" : "rgba(255, 255, 255, 0.05)",
boxShadow: "none",
border: "1px solid rgba(0, 0, 0, 0.05)",
textAlign: "left",
padding: "1.3rem 2rem",
}}
contentArrowStyle={{
borderRight:
theme === "light"
? "0.4rem solid #9ca3af"
: "0.4rem solid rgba(255, 255, 255, 0.5)",
}}
date={item.date}
icon={item.icon}
iconStyle={{
background:
theme === "light" ? "white" : "rgba(255, 255, 255, 0.15)",
fontSize: "1.5rem",
}}
>
{item.title}
{item.location}
{item.description}
</React.Fragment>
))}
);
}
That's the code itself, please help me if you had the same issue, thank you
The text was updated successfully, but these errors were encountered: