wizo's avatar
Level 4

includePaths not working in latest node 6 and elixir

I have the following gulp file:

const elixir = require('laravel-elixir');
const neat = require('bourbon-neat').includePaths;

elixir(mix => {

    mix
        .sass('app.scss', null, {includePaths: neat});
});

I wanted to use bourbon-neat, but it gives me the following error, when using gulp

path.js:7
    throw new TypeError('Path must be a string. Received ' + inspect(path));

I don't know what am I doing wrong? I have searched Google, but couldn't find a solution. Some say downgrading to node 4 worked. But that isn't a solution.

0 likes
3 replies
wizo's avatar
Level 4

In "laravel-elixir": "^6.0.0-10", this issue isn't solved either.

3cc's avatar
3cc
Best Answer
Level 3

Try this: mix.sass('app.scss', null, null, {includePaths: neat});

4 likes
garhbod's avatar

This solution doesn't work for me. Even if I specify the absolute path of the path I want to include in the includePaths I still get Error: File to import not found or unreadable: neat

Using "laravel-elixir": "^6.0.0-14"

Please or to participate in this conversation.