Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panini error: you must specify a directory for layouts. #170

Open
JorreSpijker opened this issue Jun 1, 2018 · 2 comments
Open

Panini error: you must specify a directory for layouts. #170

JorreSpijker opened this issue Jun 1, 2018 · 2 comments

Comments

@JorreSpijker
Copy link

Above error occurs everytime I want to use my Panini task.
For the record, I installed it in my own Gulpy workflow.

I've tried changing the paths etc. but nothing worked.

Here's the task code:

function panini(){
    return gulp.src('src/pages/**/*.html')
        .pipe(panini({
            root: 'src/pages/',
            layouts: 'src/layouts/',
            partials: 'src/partials/',
            helpers: 'src/helpers/',
            data: 'src/data/'
        }))
        .pipe(gulp.dest('build'));
}

My folder structure is the following:

src/
     data/
     helpers/
     layouts/
         - default.html
     pages/
         - index.html
     partials/
     img/
     js/
     scss/
@kid-three
Copy link

any luck? I'm getting the same error now that I moved to gulp v4

@atcen
Copy link

atcen commented Apr 24, 2019

this is a problem because of your gulp version.
gulp changed its syntax quite a bit.

either you change your gulpfile accordingly or you downgrade back to gulp v3.
https://www.sitepoint.com/how-to-migrate-to-gulp-4/

i still use gulp 3. just use gulp@^3.0.0 to install the latest version of gulp v3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants