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

ReferenceError: name is not defined #48

Open
motss opened this issue May 6, 2018 · 1 comment
Open

ReferenceError: name is not defined #48

motss opened this issue May 6, 2018 · 1 comment

Comments

@motss
Copy link

motss commented May 6, 2018

For unknown reason, it forces me to add in the property name in order to use gulp-template.

...
  gulp.src(files)
    .pipe(gulpTemplate({
      name: 'random-name', // unknown required property `name`
      ... // rest of the data
    })
    ,pipe(gulp.dest(dest));
...
@nalmeida
Copy link

nalmeida commented Oct 11, 2019

Looks like you there is an error in the "pipe chain".
,pipe(gulp.dest(dest));
Should start with .
The end result must be something like this:

...
gulp.src(files)
    .pipe(gulpTemplate({
      name: 'random-name', // unknown required property `name`
      ... // rest of the data
    })
    .pipe(gulp.dest(dest));
...

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

2 participants