oroce / gulp-jade-php

MIT License
11 stars 9 forks source link

TypeError in plugin 'gulp-jade-php' #8

Open badoubadou opened 7 years ago

badoubadou commented 7 years ago

Since I changed my computer, I can't run my gulp project. gulp-jade-php crash and don't give much information about why. I already uninstall and re-install gulp-jade-php, but same error again. Any help ?

gulp-notify: [Error running Gulp] TypeError in plugin 'gulp-jade-php' Message: code.replace is not a function

Please report this entire error and stack trace to https://github.com/jadejs/jade/issues

shelby-carter commented 7 years ago

In my case it caused by iframe(src="https://www.youtube.com/embed/iZ1H3jBdx0U", frameborder="0", allowfullscreen)

line, allowfullscreen in particular, it seems to do not like parameters without values, I've replaced it to iframe(src="https://www.youtube.com/embed/iZ1H3jBdx0U", frameborder="0", allowfullscreen="true" ) and it worked

badoubadou commented 7 years ago

Nop, I tried and tried to install again with very simple files, and I still have

events.js:163
      throw er; // Unhandled 'error' event
      ^
TypeError: code.replace is not a function

It's so weird, I'm on the same version of node, npm, gulp local and global, as with my other computer, and it work like a charm on the other computer... is there any equivalent I could use ? Maybe with pug update ? I can't find any equivalent who would do gulp + pug + php.