I am using the quasar framework and encountered the above error when compiling the project
模塊構(gòu)建失敗(來自./node_modules/sass-loader/dist/cjs.js): SassError:此文件已經(jīng)被加載。 ? 1 │ @import '~src/css/quasar.variables.scss','quasar/src/css/variables.sass'; │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ? srccssquasar.variables.scss 1:9 root stylesheet
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/"