SassError: This file is already being loaded. @import '~src/css/quasar.variables.scss', 'quasar/src/css/variables.sass'; src\css\quasar.variables.scss
SassError: This file is already being loaded. @import '~src/css/quasar.variables.scss', 'quasar/src/css/variables.sass'; src\css\quasar.variables.scss
我正在使用 quasar 框架,在编译项目时出现上述错误
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: This file is already being loaded.
╷
1 │ @import '~src/css/quasar.variables.scss', 'quasar/src/css/variables.sass';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src\css\quasar.variables.scss 1:9 root stylesheet
我在路由时走错了路。
之前
Route.setViewResolver( component => require( "src/" + component ).default );
之后
Route.setViewResolver( component => require( "src/pages/" + component ).default );
我错过了传递组件的路径“src/pages/”
我正在使用 quasar 框架,在编译项目时出现上述错误
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: This file is already being loaded.
╷
1 │ @import '~src/css/quasar.variables.scss', 'quasar/src/css/variables.sass';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src\css\quasar.variables.scss 1:9 root stylesheet
我在路由时走错了路。
之前
Route.setViewResolver( component => require( "src/" + component ).default );
之后
Route.setViewResolver( component => require( "src/pages/" + component ).default );
我错过了传递组件的路径“src/pages/”