{"action":"closed","issue":{"url":"https://api.github.com/repos/mjmlio/mjml/issues/232","repository_url":"https://api.github.com/repos/mjmlio/mjml","labels_url":"https://api.github.com/repos/mjmlio/mjml/issues/232/labels{/name}","comments_url":"https://api.github.com/repos/mjmlio/mjml/issues/232/comments","events_url":"https://api.github.com/repos/mjmlio/mjml/issues/232/events","html_url":"https://github.com/mjmlio/mjml/issues/232","id":153538348,"number":232,"title":"gulp watch not properly configured?","user":{"login":"paOol","id":5941389,"avatar_url":"https://avatars.githubusercontent.com/u/5941389?v=3","gravatar_id":"","url":"https://api.github.com/users/paOol","html_url":"https://github.com/paOol","followers_url":"https://api.github.com/users/paOol/followers","following_url":"https://api.github.com/users/paOol/following{/other_user}","gists_url":"https://api.github.com/users/paOol/gists{/gist_id}","starred_url":"https://api.github.com/users/paOol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paOol/subscriptions","organizations_url":"https://api.github.com/users/paOol/orgs","repos_url":"https://api.github.com/users/paOol/repos","events_url":"https://api.github.com/users/paOol/events{/privacy}","received_events_url":"https://api.github.com/users/paOol/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mjmlio/mjml/labels/Bug","name":"Bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"GuillaumeBadi","id":6558790,"avatar_url":"https://avatars.githubusercontent.com/u/6558790?v=3","gravatar_id":"","url":"https://api.github.com/users/GuillaumeBadi","html_url":"https://github.com/GuillaumeBadi","followers_url":"https://api.github.com/users/GuillaumeBadi/followers","following_url":"https://api.github.com/users/GuillaumeBadi/following{/other_user}","gists_url":"https://api.github.com/users/GuillaumeBadi/gists{/gist_id}","starred_url":"https://api.github.com/users/GuillaumeBadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuillaumeBadi/subscriptions","organizations_url":"https://api.github.com/users/GuillaumeBadi/orgs","repos_url":"https://api.github.com/users/GuillaumeBadi/repos","events_url":"https://api.github.com/users/GuillaumeBadi/events{/privacy}","received_events_url":"https://api.github.com/users/GuillaumeBadi/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2016-05-06T21:07:08Z","updated_at":"2016-05-17T09:44:00Z","closed_at":"2016-05-17T09:44:00Z","body":"```\r\n            throw new _Error.UnknownMJMLElement('Could not find element for :\r\n' + elem.get('tagName'));\r\n              ^\r\n\r\nError: [MJMLError] UnknownMJMLElement: Could not find element for : mj-container\r\n\r\n    at MJMLError.Error (native)\r\n    at new MJMLError (( my file directory)) \\node_modules\\mjml\\lib\\Error.js:24:85)\r\n    at ( my file directory)) \\node_modules\\mjml \\lib\\components\\MJMLElement.js:172:21\r\n    at ( my file directory)) \\node_modules\\immu table\\dist\\immutable.js:3004:46\r\n    at List.__iterate (( my file directory)) \\n ode_modules\\immutable\\dist\\immutable.js:2194:13)\r\n    at IndexedIterable.mappedSequence.__iterateUncached ( \\node_modules\\immutable\\dist\\immutable.js:3003:2\r\n3)\r\n    at seqIterate (( my file directory)) \\node_ modules\\immutable\\dist\\immutable.js:606:16)\r\n    at IndexedIterable.IndexedSeq.__iterate  \\node_modules\\immutable\\dist\\immutable.js:322:14) at IndexedIterable.mixin.toArray  (\\node_modules\\immutable\\dist\\immutable.js:4236:23)\r\n    at new List (( my file directory)) \\node_mo dules\\immutable\\dist\\immutable.js:2053:62)\r\n\r\n```\r\n\r\nI get that error when trying to setup gulp watch and saving my code. I have tested with a template so the code should be fine.\r\n\r\nIf I do mjml --watch instead of using gulp, it works correctly.\r\n\r\nHere is the gulp.js\r\n\r\n```\r\nvar gulp = require('gulp'),\r\n  mjml= require('gulp-mjml');\r\n\r\n\r\n  gulp.task('mjml', function(){\r\n\r\n    return gulp.src('*.mjml')\r\n\r\n      .pipe(mjml())\r\n      .pipe(gulp.dest('./html'));\r\n\r\n  });\r\n\r\n\r\n  gulp.task('watch', function(){\r\n    gulp.watch('*.mjml', ['mjml']);\r\n  });\r\n\r\n\r\n  gulp.task('default', ['watch']);\r\n\r\n```\r\n\r\n"}}