Open dybxin opened 3 years ago
component: () => import(@/${trees[i].component}) 只是动态导入导致了 相关的问题。
@/${trees[i].component}
在动态导入组件时候 会提示 :
` error in ./src/styles/sidebar.scss
Syntax Error: SassError: Undefined variable. ╷ 6 │ margin-left: $sideBarWidth; │ ^^^^^^^^^^^^^ ╵ src/styles/sidebar.scss 6:18 root stylesheet
@ ./src/styles/sidebar.scss 4:14-227 15:3-20:5 16:22-235 @ ./src lazy ^.\/.*$ namespace object @ ./src/store/modules/router.js @ ./src/store/index.js @ ./src/main.js @ multi (webpack)-dev-server/client?http://192.168.1.48:8080&sockPath=/sockjs-node ./node_modules/@vue/cli-service/node_modules/webpack/hot/dev-server.js ./src/main.js `
component: () => import(
@/${trees[i].component}
) 只是动态导入导致了 相关的问题。在动态导入组件时候 会提示 :
` error in ./src/styles/sidebar.scss
Syntax Error: SassError: Undefined variable. ╷ 6 │ margin-left: $sideBarWidth; │ ^^^^^^^^^^^^^ ╵ src/styles/sidebar.scss 6:18 root stylesheet
@ ./src/styles/sidebar.scss 4:14-227 15:3-20:5 16:22-235 @ ./src lazy ^.\/.*$ namespace object @ ./src/store/modules/router.js @ ./src/store/index.js @ ./src/main.js @ multi (webpack)-dev-server/client?http://192.168.1.48:8080&sockPath=/sockjs-node ./node_modules/@vue/cli-service/node_modules/webpack/hot/dev-server.js ./src/main.js `