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

PrimeIcons won't show when deployed in Dynamics 365 CE Web resource #224

Open
speeters-bytem opened this issue Apr 3, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@speeters-bytem
Copy link

Hi,

I'm a newbie in Angular and I'm facing a deployment issue with PrimeIcons.
If I deploy on a local IIS , my icons are shown but I want to use this Angular App as a webresource in Dynamics 365 CE (Formely know as Microsoft CRM) things go wrong.

So my files are all in this location https://mycrminstance.crm4.dynamics.com ... tionMockup
In there I have my js files, my index.html and also my ttf/woff/woff2 and svg files.
I can see in the console or fiddler that I have no 404 errors on any files requested from my site.
the primeicons.css is properly loaded (inside styles.js) but still my icons are not loaded.

I know the svg should be loaded when the css file is parsed so I checked the the styles.js and he did modify the path, instead of '.\fonts..' it is just the filename
src: url('primeicons.eot');\n src: url('primeicons.eot?#iefix') format('embedded-opentype'), url('primeicons.ttf') format('truetype'), url('primeicons.woff') format('woff'), url('primeicons.svg?#primeicons') format('svg')
In the console I do see that both primeicons.woff and primeicons.ttf are properly loaded, no trace of primeicons.svg.
I also compared with the working IIS instance, the primeicons.svg is not showing up in either fiddler or the console yet the icons are shown.

How can I debug this and try to understand where he is missing a reference or something like that.
I already looked at every article on the web but I have no idea what to try next.

Angular CLI: 9.0.6
Node: 12.14.1
OS: win32 x64
Angular: 9.0.6

@onursenture onursenture added the bug Something isn't working label Oct 19, 2020
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

3 participants