Base solution for your next web application
Open Closed

ASPNetZero Public Site Error #8232


User avatar
0
muhittincelik created

Hi,

I got the following errors at public site with default installation.

10Refused to apply style from '<URL>' because its MIME type ('') is not a supported stylesheet MIME type, and strict MIME checking is enabled. frontend-libs.min.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) (index):458 Uncaught TypeError: Cannot set property 'defaultSourceName' of undefined at (index):458 frontend-metronic.min.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) owl.carousel.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) GetScripts?_v=637126925803952604:1409 Uncaught TypeError: Cannot read property 'unspecifiedClockProvider' of undefined at GetScripts?_v=637126925803952604:1409 at GetScripts?_v=637126925803952604:1411 frontend-metronic.min.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) (index):469 Uncaught ReferenceError: $ is not defined at (index):469 jquery.fancybox.pack.js:46 Uncaught ReferenceError: jQuery is not defined at jquery.fancybox.pack.js:46 owl.carousel.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) (index):478 Uncaught ReferenceError: $ is not defined at (index):478


3 Answer(s)
  • User Avatar
    0
    yekalkan created

    You have to run "yarn" and "npm run create-bundles" command for public web site.

    see https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/Public-Website

  • User Avatar
    0
    muhittincelik created

    I tried npm run create-bundle three time it freezes with last message "Finished 'buildDev' after xx s.

    Bu public site running now.

  • User Avatar
    0
    yekalkan created

    It doesn't freeze. It watches your js files and instantly re-create bundles if you edit anything.