We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It doesn't work as server component in new nextJs App Router. Only with "use client" I wrote simple component, and get error
"use client"
without turbo get this error
const Icon: FC<Props> = ({ icon, svgClassName, alt, size = 20, width, height, role, }) => { const src = `/images/icons/${icon}.svg`; const iconWidth = width ?? size; const iconHeight = height ?? size; return ( <> <ReactSVG role={role || "presentation"} src={src} width={iconWidth} height={iconHeight} className={svgClassName} // evalScripts="always" fallback={() => <span>!</span>} title={alt || "icon"} /> </> ); }; export default Icon;
honestly I think it can't be a server component because SVGInjector use document.. But just wanna get some thoughts about that
document.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It doesn't work as server component in new nextJs App Router. Only with
"use client"
I wrote simple component, and get error
without turbo get this error
honestly I think it can't be a server component because SVGInjector use
document.
. But just wanna get some thoughts about thatThe text was updated successfully, but these errors were encountered: