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

compiling viewer.less fails #61

Open
churti opened this issue Sep 1, 2017 · 1 comment
Open

compiling viewer.less fails #61

churti opened this issue Sep 1, 2017 · 1 comment

Comments

@churti
Copy link

churti commented Sep 1, 2017

Hello everyone,
until now i use angular-pdfjs-viewer 0.7.4 and everything works fine.
Now i was upgrading it (tryed it with both 0.8.0 and 0.8.1) and my build fails.
At the start of my build process i recompile the viewer.less with the global variable as it stands in the advanced configuration in the readme:
"lessc --global-var=\"pdfjsImagePath='../pdfjs'\" bower_components\\pdf.js-viewer\\viewer.less bower_components\\pdf.js-viewer\\viewer.css

As i said with 0.7.4 everything was ok. Now i get this:

SyntaxError: expected ')' got '/' in on line 2, column 4312:

And this fails:
border-image:url(@pdfjsImagePath/shadow.png)

@hurnell
Copy link

hurnell commented May 24, 2024

This fails for all references to @pdfjsImagePath they all need to be enclosed in curly braces (78 occurance)

border-image:url(@pdfjsImagePath/shadow.png)

needs to become

border-image:url(@{pdfjsImagePath}/shadow.png)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants