Closed
Description
Hello. Thank you for this work :)
I try to use it with Vue-CLI through vue.conf.js
with next config:
chainWebpack: config => {
config.module
.rule('scss')
.use('sass-vars-loader')
.loader('sass-vars-loader')
.options({
loader: 'sass-vars-loader',
options: {
syntax: 'scss',
files: [
path.resolve(__dirname, '@/assets/styles/contracts/variables.json'),
],
},
})
},
But when project starts I have error in console for every using Vue-component:
Module build failed (from ./node_modules/sass-vars-loader/index.js):
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
at assertPath (path.js:39:11)
at Object.join (path.js:1155:7)
at read (/Users/netstuff/Sites/bspb/ui/node_modules/fs-readdir-recursive/index.js:11:18)
at requireFresh (/Users/netstuff/Sites/bspb/ui/node_modules/require-fresh/index.js:67:21)
at Object.SassImports (/Users/netstuff/Sites/bspb/ui/node_modules/sass-vars-loader/index.js:39:46)
What I do wrong?
Metadata
Metadata
Assignees
Labels
No labels