We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What were you expecting to happen?
gulp to run (specifically, compile some handlebars templates)
What actually happened?
gulp crashed
> gulp templates gulp[12108]: src\node_contextify.cc:631: Assertion `args[1]->IsString()' failed. 1: node::DecodeWrite 2: node::DecodeWrite 3: uv_loop_fork 4: v8::internal::interpreter::BytecodeDecoder::Decode 5: v8::internal::RegExpImpl::Exec 6: v8::internal::RegExpImpl::Exec 7: v8::internal::RegExpImpl::Exec 8: 000000BB0FF04281 Process finished with exit code 134
Please post a sample of your gulpfile (preferably reduced to just the bit that's not working)
var gulp = require('gulp'); var templates = require('./gulp/templates'); gulp.task('templates', templates);
var gulp = require('gulp'); var path = require('path'); var handlebars = require('gulp-handlebars'); var wrap = require('gulp-wrap'); var declare = require('gulp-declare'); var concat = require('gulp-concat'); var merge = require('merge-stream'); module.exports = function() { //process partials var partials = gulp.src('./templates/partials/**/*.hbs') .pipe(handlebars()) .pipe(wrap('Handlebars.registerPartial(<%= processPartialName(file.relative) %>, Handlebars.template(<%= contents %>) );',{},{ imports:{ "processPartialName": function(fileName) { return JSON.stringify(path.basename(fileName, '.js')); } } })); var templates = gulp.src(['./templates/**/*.hbs', '!./templates/partials/**/*.hbs']) .pipe(handlebars()) .pipe(wrap('Handlebars.template(<%= contents %>)')) .pipe(declare({ namespace: 'app.templates', noRedeclare: true })); return merge(partials, templates) .pipe(concat('combined.js')) .pipe(gulp.dest('./public/assets/templates/')) }
What version of gulp are you using?
> gulp -v [13:34:34] CLI version 3.9.1 [13:34:34] Local version 3.9.1
What versions of npm and node are you using?
> npm -v 5.6.0 > node -v v10.0.0
OS: Windows 10 April 2018 Update
I suspect this is related to issue #2162 but the included fix did not work. The problem began to occur after upgrade to April 2018
The text was updated successfully, but these errors were encountered:
You've already linked the duplicate. That is the only solution.
Sorry, something went wrong.
No branches or pull requests
What were you expecting to happen?
gulp to run (specifically, compile some handlebars templates)
What actually happened?
gulp crashed
Please post a sample of your gulpfile (preferably reduced to just the bit that's not working)
What version of gulp are you using?
What versions of npm and node are you using?
OS: Windows 10 April 2018 Update
I suspect this is related to issue #2162 but the included fix did not work. The problem began to occur after upgrade to April 2018
The text was updated successfully, but these errors were encountered: