Haha - I just got it working - putting this here in case anyone else is having this problem. I just added the following to the module.exports in the vue.config.js file
css: {
loaderOptions: {
sass: {
includePaths: [path.resolve(__dirname, 'node_modules/@syncfusion')]
}
}
},
Can you post your whole
vue.config.js file? I tried pasting in your bit of config and get this error:
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
ValidationError: Invalid options object. Sass Loader has been initialised using an options object that does not match the API schema.
- options has an unknown property 'includePaths'. These properties are valid:
object { implementation?, sassOptions?, prependData?, sourceMap?, webpackImporter? }
at validate (/home/neteng/vuetest/test/node_modules/sass-loader/node_modules/schema-utils/dist/validate.js:50:11)
at Object.loader (/home/neteng/vuetest/test/node_modules/sass-loader/dist/index.js:36:28)
My vue.config.js looks like this:
const path = require('path');
module.exports = {
css: {
loaderOptions: {
sass: {
includePaths: [path.resolve(__dirname, "./node_modules/@syncfusion")]
}
}
},
"devServer": {
"contentBase": "build",
"hot": true,
"historyApiFallback": true,
"host": "0.0.0.0",
"port": "8080",
"disableHostCheck": true,
"compress": false,
"inline": true,
"stats": "none"
},
outputDir: path.join(__dirname, 'build'),
"transpileDependencies": ["vuetify"]
}