Sass error: File already loaded: @import '~src/css/quasar.variables.scss', 'quasar/src/css/variables.sass'; src\css\quasar.variables.scss
P粉038856725
P粉038856725 2023-11-06 21:38:55
0
1
563

I am using the quasar framework and encountered the above error when compiling the project

模块构建失败(来自./node_modules/sass-loader/dist/cjs.js): SassError:此文件已经被加载。 ╷ 1 │ @import '~src/css/quasar.variables.scss','quasar/src/css/variables.sass'; │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ╵ srccssquasar.variables.scss 1:9 root stylesheet
P粉038856725
P粉038856725

reply all (1)
P粉680487967

During the routing process, I passed the wrong path.

Before

Route.setViewResolver( component => require( "src/" + component ).default );

after

Route.setViewResolver( component => require( "src/pages/" + component ).default );

I forgot to pass the path of the component "src/pages/"

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!