Ag-Grid sass / webpack似乎无法解析来自node_modules内部的相对路径

时间:2019-01-18 13:46:09

标签: vue.js ag-grid webpack-4 node-sass vue-cli-3

如果我在.vue组件中使用它:

<style lang="scss" scoped>
  @import '~ag-grid-community/src/styles/ag-theme-material/sass/ag-theme-material';
</style>

我收到此错误:

./icons/aggregation.svg?color1=%23333333&color2= in ./node_modules/css-loader??ref--8-oneOf-1-1!./node_modu
les/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--8-oneOf-1-2!./node_modul
es/sass-loader/lib/loader.js??ref--8-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_module
s/vue-loader/lib??vue-loader-options!./path/to/my/Component.vue?vue&type=style&index=0&id=
f7f0e260&lang=scss&scoped=true&

我正在使用

"ag-grid-community": "^20.0.0",
"ag-grid-vue": "^20.0.0",
"vue": "^2.5.21",
"node-sass": "^4.11.0",
"sass-loader": "^7.1.0",

"@vue/cli-service": "^3.3.0",

我忘记了什么或做错了什么?

0 个答案:

没有答案