Skip to content
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

Syntax Error react-pdf #217

Closed
WhiteBread1 opened this issue Jan 4, 2024 · 5 comments
Closed

Syntax Error react-pdf #217

WhiteBread1 opened this issue Jan 4, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@WhiteBread1
Copy link

Everything was working fine, but I did a new install of node_modules and now I receive this error

@cyntler/react-doc-viewer/node_modules/react-pdf/dist/esm/Page/AnnotationLayer.css:16
:root {
^

SyntaxError: Unexpected token ':'

@osanchezestoko
Copy link

osanchezestoko commented Jan 10, 2024

I've got the same error, I've tried different ways to solve it but continues failing

EDIT: In 1.14.0 all is working, but when I upgrade to 1.14.1 it fails

@milad7290
Copy link

Same here...

@syaifulamir
Copy link

same here

@alantoa
Copy link
Contributor

alantoa commented Apr 10, 2024

I'm sure this PR will fix this issue. #235
If you guys want to make it work, just comment out the import CSS lines and patch it.

@cyntler cyntler added the bug Something isn't working label Jun 4, 2024
@cyntler
Copy link
Owner

cyntler commented Jun 7, 2024

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 cyntler closed this as completed Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants