angular icon indicating copy to clipboard operation
angular copied to clipboard

style file paths

Open hardfi opened this issue 8 years ago • 2 comments

I just embedded the new FormBuilder into my app but I encountered a problem: style files are referenced to as external paths:

styles: ["@import url(/node_modules/formiojs/dist/formio.full.min.css); "]

which causes the compiler to look for the file at path: http://localhost:4200/node_modules/formiojs/dist/formio.full.min.css (which is obviously not a public resource), and it gives the following error in the browser:

Refused to apply style from 'http://localhost:4200/node_modules/formiojs/dist/formio.full.min.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

(because what it receives is html error page).

Now stylesheets work only when they're included in public project assets (which is not only the case of the FormBuilder as far as I see).

hardfi avatar May 25 '18 12:05 hardfi

same issue.

@travist @Vercjames @YuryRybakSoftensity @randallknutson @asalhani

AlameerDev avatar May 30 '18 09:05 AlameerDev

This should be fixed with the RC1 release.

Thanks.

travist avatar Jun 01 '18 03:06 travist