Hi there, I am encountering a gulp error when trying to run the gulpfile.js with your example code.
sudo gulp
[19:28:18] Using gulpfile /home/pi/CarData/Gulpfile.js
[19:28:18] Starting 'default'...
[19:28:19] Finished 'default' after 38 ms
/home/pi/CarData/node_modules/xml-stream/lib/xml-stream.js:430
container[container.length - 1] = val;
^
TypeError: Cannot read property 'length' of undefined
at Parser.<anonymous> (/home/pi/CarData/node_modules/xml-stream/lib/xml-stream.js:430:27)
at emitOne (events.js:116:13)
at Parser.emit (events.js:211:7)
at Parser.parse (/home/pi/CarData/node_modules/node-expat/lib/node-expat.js:23:22)
at parseChunk (/home/pi/CarData/node_modules/xml-stream/lib/xml-stream.js:513:14)
at Readable.<anonymous> (/home/pi/CarData/node_modules/xml-stream/lib/xml-stream.js:533:11)
at emitOne (events.js:116:13)
at Readable.emit (events.js:211:7)
at Readable.read (_stream_readable.js:475:10)
at flow (_stream_readable.js:846:34)
gulpfile.js contains
var gulp = require('gulp');
var converterTjs = require('gulp-converter-tjs');
gulp.task('default', function () {
gulp.src('./cascade.xml')
.pipe(converterTjs())
.pipe(gulp.dest('./modified-files'));
});
gulp and gulp-cli are both on the latest version. has anyone encountered the same error before and know how to fix it?
Hi there, I am encountering a gulp error when trying to run the gulpfile.js with your example code.
gulpfile.js contains
gulp and gulp-cli are both on the latest version. has anyone encountered the same error before and know how to fix it?