Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

failed to read the 'cssrules' property from 'cssstylesheet' cannot access rules #10018


User avatar
0
shridhar.mole created
  • 8.9
  • Angular
  • .net core

Hi, I want to use DHTMLX diagram library in my angular project, and they dont have any npm package for that. so we need to add their javascript & css files into our project. I add that files reference into index.html file as `

` but then I was not able to acces that library. Then I added that files reference into angular.json files after that I was able to access the library but for export feature I am getting the error below "failed to read the 'cssrules' property from 'cssstylesheet' cannot access rules". please suggest the proper way to add external javascript libraries into asp.net zero angular project. and details about the above error. Thanks

3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @shridhar.mole

    Does that happen when the page load or when you click on a specific item ? This problem is explained here. Is it possible that DHTMLX is making a remote request ?

  • User Avatar
    0
    shridhar.mole created

    It happens when I click on button to export my dhtmlx diagram to pdf. Can you please tell me how can we add external libraries and css files into our project and in which files we need to configure that. like in index.html or angular.json. Please tell me this in brief.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @shridhar.mole

    like in index.html or angular.json.

    Both approach works but we suggest adding them to angular.json. So, your approach is correct. Probably dhtmlx is making a remote request which causes this problem.