문제

I'm referencing this script in the header:

http://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.3/css/base/jquery.ui.all.css

And when I run my application, I get this error:

SCRIPT1030: Conditional compilation is turned off

According to MSDN I should be doing something with /*@cc_on @*/. I have tried that but it doesn't recognize it in the _Layout.cshtml page.

Removing this line works:

<script src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.3/css/base/jquery.ui.all.css"></script>

But I need the css files. How can I solve this problem?

도움이 되었습니까?

해결책

It turned out to be the use of the wrong tag. I used <script> in stead of <link>, because it's a CSS file.

It's an easy made mistake, so I'll leave it for those who gets this error too. Got me busy with it for like an hour or 2.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top