Ryan Chiang

Results 7 comments of Ryan Chiang

Same issue here on Next 14.1.0. Issue was as @jamescgibson described, NextJS trying to render react-pdf-viewer as a server component, despite using the "use client" directive. I resolved it using...

Issue still persists. See this codepen for example: [https://codesandbox.io/s/amazing-hermann-x2qw8m?file=/src/index.js](https://codesandbox.io/s/amazing-hermann-x2qw8m?file=/src/index.js) Unfortunately this cripples the library for anything besides simple/single-page infinite scroll apps.

Here's my workaround InfiniteScroll component, using IntersectionObserver: ```typescript interface InfiniteScrollProps { load: () => void; hasMore: boolean; loader: React.ReactNode; children?: React.ReactNode; endMessage?: React.ReactNode; } export const InfiniteScroll: React.FC = ({...

For future reference, it seems the new Node SDK with TS support is here: [https://github.com/getbrevo/brevo-node](https://github.com/getbrevo/brevo-node)

You need to change your ES module import to: ```typescript import * as SibApiV3Sdk from "@getbrevo/brevo"; ``` And you should no longer face this error.

Thank you for your contribution! The issue should be fixed as Sep 24, although I missed your PR earlier.

This component uses a Popover, so when wrapping it in a Dialog, you need to set `modalPopover={true}` as per [https://github.com/radix-ui/primitives/issues/2121#issuecomment-2227348602](https://github.com/radix-ui/primitives/issues/2121#issuecomment-2227348602) ``` ```