Not able to load my css file while creating webviewer instance

Product: PDFTron WebViewer

Product Version: 10.3.0

Please give a brief summary of your issue:
(Think of this as an email subject)

Please describe your issue and provide steps to reproduce it: Not able to include my css file while creating webviewer instance
(The more descriptive your answer, the faster we are able to help you)

Please provide a link to a minimal sample where the issue is reproducible:

I need to customize css for webViewer DOM elements.
I am passing my .scss file location as displayed below in screenshot.

Error in console:

Actual file location path:
C:\HiralData\localupdates\4.0\ELCGIT2017\Source\ELC\Web\App\ClientApp\Modules\Shared\Components\Viewer\Viewer\Viewer.scss

Can you help what is wrong with path given to css parameter and how to resolve this?

Thanks,
Hiral Dodia

2 Likes

Hey Hiral,

Did you find any solution on this issue? I am facing same issue not 404 but getting below error.

Refused to apply style from 'http://localhost:4200/app/components/xod-viewer/xod-viewer.component.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Let me know if you have any input on above issue.

Thanks,
DGosai

1 Like