react-doc-viewer icon indicating copy to clipboard operation
react-doc-viewer copied to clipboard

AnnotationLayer.css Global CSS cannot be imported from within node_modules.

Open huy126123 opened this issue 1 year ago • 5 comments

i just import DocViewer, { DocViewerRenderers } from "@cyntler/react-doc-viewer"; And it have this error ./node_modules/react-pdf/dist/esm/Page/AnnotationLayer.css Global CSS cannot be imported from within node_modules. Read more: https://nextjs.org/docs/messages/css-npm Location: node_modules@cyntler\react-doc-viewer\dist\esm\renderers\pdf\index.js I don't know how to fix :<

huy126123 avatar Nov 06 '23 04:11 huy126123

you can use "1.12.0" version

durra-developer avatar Nov 06 '23 12:11 durra-developer

even after using version 1.12.0 in next js 13, its not working ?? please help @cyntler @durra-developer

sarthsksingh077 avatar Feb 22 '24 14:02 sarthsksingh077

Hi! Any updates on this topic?

nnurmano avatar Apr 12 '24 04:04 nnurmano

you can use "1.12.0" version

Works for me

Olamide-Bello avatar May 01 '24 12:05 Olamide-Bello

WhatsApp Image 2024-05-09 at 11 01 00

Is there any fix for this ? @cyntler

sarthsksingh077 avatar May 09 '24 05:05 sarthsksingh077

Try to use the latest version (1.16.2) and use it line in your projects: https://github.com/cyntler/react-doc-viewer?tab=readme-ov-file#required-styles

cyntler avatar Jun 07 '24 07:06 cyntler