Closed jessevdp closed 4 years ago
Hiya, it's been over a week with no response. Has anyone had the time to look at this? Does anyone else have this problem?
Hiya, it's been over a week with no response. Has anyone had the time to look at this? Does anyone else have this problem?
I upgraded from 0.15 to 0.23.1 and started having this problem. No idea how to resolve. Moving back to 0.22.3 until we can figure out what's up
why still not fixed~
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If you're using NextJS 13, make sure use include use client
on top of the file.
As the Slider data is dynamic, so the new NextJS expects the component to be Client Component.
'use client';
If you're using NextJS 13, make sure use include
use client
on top of the file. As the Slider data is dynamic, so the new NextJS expects the component to be Client Component.'use client';
Thanks dude was so confused at this issue. Saved alot of time.
o the new NextJS expects the component to be Client Component.
'use client';
Life saver?
'use client'
Thanks for this response. Honestly, I saved a lot of time.
If you're using NextJS 13, make sure use include
use client
on top of the file. As the Slider data is dynamic, so the new NextJS expects the component to be Client Component.'use client';
my savior
praying chatgpt learns the nextjs app router soon
if i wan to get the img from dummyjson Api this error shows Error: Unsupported Server Component type: undefined please help
If you're using NextJS 13, make sure use include
use client
on top of the file. As the Slider data is dynamic, so the new NextJS expects the component to be Client Component.'use client';
But my code is not working. here is my code --> **
'use client' import React from 'react'; import { BANNER_THINGS } from "@/constants"; import Image from "next/image"; import Link from "next/link"; import Slider from 'react-slick';
const Swiperr = () => { var settings = { dots: true, infinite: true, speed: 500, slidesToShow: 1, slidesToScroll: 1 };
return ( <Slider {...settings}> {BANNER_THINGS.map((things) => (
{things.paragraph}
{things.title}
))} </Slider>
); };
export default Swiperr;
**
If you're using NextJS 13, make sure use include
use client
on top of the file. As the Slider data is dynamic, so the new NextJS expects the component to be Client Component.'use client';
But my code is not working. here is my code --> **
'use client' import React from 'react'; import { BANNER_THINGS } from "@/constants"; import Image from "next/image"; import Link from "next/link"; import Slider from 'react-slick'; const Swiperr = () => { var settings = { dots: true, infinite: true, speed: 500, slidesToShow: 1, slidesToScroll: 1 }; return ( <Slider {...settings}> {BANNER_THINGS.map((things) => (
{things.paragraph}
{things.title}
{things.button}
))}
); }; export default Swiperr;
**
I don't see any problem here. It should work u must be having another issue rather than the issue that comes with not using of use-client
Hi there. Updating from
v0.22.3
tov0.23.x
causes an issue. Running it causes an error in one of the underlying parts. (lib/track.js)Any idea on why this is happening or how to resolve it?
Here is the raw log: