vuejs / vueify

Browserify transform for single-file Vue components
MIT License
1.17k stars 152 forks source link

vue.config.js not working for me #180

Open troymcneil opened 7 years ago

troymcneil commented 7 years ago

This is my vue.config.js file. It is in the root of my project.

module.exports = { sass: { data: '@import "/src/styles/variables.scss";', includePaths: '/src/styles' } }

I am getting this error:

TypeError: options.includePaths.unshift is not a function while parsing file: C:\Users\troy.mcneil\Documents\My Web Sites\stronger\src\App.vue at buildIncludePaths (C:\Users\troy.mcneil\Documents\My Web Sites\stronger\node_modules\node-sass\lib\index.js:177:24) at getOptions (C:\Users\troy.mcneil\Documents\My Web Sites\stronger\node_modules\node-sass\lib\index.js:200:26) at Object.module.exports.render (C:\Users\troy.mcneil\Documents\My Web Sites\stronger\node_modules\node-sass\lib\index.js:287:17) at module.exports (C:\Users\troy.mcneil\Documents\My Web Sites\stronger\node_modules\vueify\lib\compilers\sass.js:31:8) at C:\Users\troy.mcneil\Documents\My Web Sites\stronger\node_modules\vueify\lib\compiler.js:297:7 at compileAsPromise (C:\Users\troy.mcneil\Documents\My Web Sites\stronger\node_modules\vueify\lib\compiler.js:296:12) at processStyle (C:\Users\troy.mcneil\Documents\My Web Sites\stronger\node_modules\vueify\lib\compiler.js:264:10) at C:\Users\troy.mcneil\Documents\My Web Sites\stronger\node_modules\vueify\lib\compiler.js:87:12 at Array.map (native) at EventEmitter.compiler.compile (C:\Users\troy.mcneil\Documents\My Web Sites\stronger\node_modules\vueify\lib\compiler.js:86:25)

I am not sure what I am doing wrong. Any help would be greatly appreciated. Thanks

Jerffersonferreira commented 7 years ago

@troymcneil the includePaths must be an array.