Currently, I am working on VueJS with Webpack and SCSS. I am facing a problem when attempting to import the SCSS file into the component using the following code:
<style type="scss"> @import "/sass/pages/_initial.scss";</style>
Upon doing so, an error message pops up saying:
Refused to apply style from 'http://localhost:8080/sass/pages/_initial.scss' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
Even though the file is being found, the issue persists. The SCSS code is pretty straightforward:
#initial {
position: relative;
background-color: $primary-white;
}
.vid-play-one {
width: 100%;
height: 90%;
overflow: hidden;
}
It's confusing why this error is occurring since the MIME type should be text/css