{"action":"created","issue":{"url":"https://api.github.com/repos/balderdashy/sails/issues/2915","labels_url":"https://api.github.com/repos/balderdashy/sails/issues/2915/labels{/name}","comments_url":"https://api.github.com/repos/balderdashy/sails/issues/2915/comments","events_url":"https://api.github.com/repos/balderdashy/sails/issues/2915/events","html_url":"https://github.com/balderdashy/sails/issues/2915","id":74365610,"number":2915,"title":"Warning: Cannot read property 'indexOf' of undefined Used --force, continuing.","user":{"login":"pawankorotane","id":4116877,"avatar_url":"https://avatars.githubusercontent.com/u/4116877?v=3","gravatar_id":"","url":"https://api.github.com/users/pawankorotane","html_url":"https://github.com/pawankorotane","followers_url":"https://api.github.com/users/pawankorotane/followers","following_url":"https://api.github.com/users/pawankorotane/following{/other_user}","gists_url":"https://api.github.com/users/pawankorotane/gists{/gist_id}","starred_url":"https://api.github.com/users/pawankorotane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pawankorotane/subscriptions","organizations_url":"https://api.github.com/users/pawankorotane/orgs","repos_url":"https://api.github.com/users/pawankorotane/repos","events_url":"https://api.github.com/users/pawankorotane/events{/privacy}","received_events_url":"https://api.github.com/users/pawankorotane/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-08T13:31:47Z","updated_at":"2015-05-08T14:22:04Z","closed_at":null,"body":"HI Guys,\r\n\r\nI am getting these warnings when I runs the sails lift command it works fine in my development machine (mac) when I run my application on AWS EC2(ubuntu)  I am getting indexOf warnings in could of task like jst, sails-linker. Could you please help me out to fix this problem.\r\nhere is my package.json file and I am using Sails V.0.10\r\n\r\n{\r\n  \"dependencies\": {\r\n    \"bcrypt\": \"~0.8.0\",\r\n    \"connect-redis\": \"^1.4.5\",\r\n    \"ejs\": \"~0.8.4\",\r\n    \"grunt\": \"0.4.2\",\r\n    \"grunt-bower-task\": \"^0.3.4\",\r\n    \"grunt-contrib-clean\": \"~0.5.0\",\r\n    \"grunt-contrib-coffee\": \"~0.10.1\",\r\n    \"grunt-contrib-concat\": \"~0.3.0\",\r\n    \"grunt-contrib-copy\": \"~0.5.0\",\r\n    \"grunt-contrib-cssmin\": \"~0.9.0\",\r\n    \"grunt-contrib-jst\": \"~0.6.0\",\r\n    \"grunt-contrib-less\": \"0.11.1\",\r\n    \"grunt-contrib-uglify\": \"~0.4.0\",\r\n    \"grunt-contrib-watch\": \"~0.5.3\",\r\n    \"grunt-sails-linker\": \"~0.9.5\",\r\n    \"grunt-sync\": \"~0.0.4\",\r\n    \"include-all\": \"~0.1.3\",\r\n    \"jwt-simple\": \"~0.2.0\",\r\n    \"nodemailer\": \"~1.3.0\",\r\n    \"nodemailer-smtp-transport\": \"~0.1.13\",\r\n    \"rc\": \"~0.5.0\",\r\n    \"request\": \"~2.51.0\",\r\n    \"sails\": \"~0.10.5\",\r\n    \"sails-disk\": \"~0.10.0\",\r\n    \"sails-generate-bower\": \"0.0.2\",\r\n    \"sails-mongo\": \"~0.10.5\",\r\n    \"sails-redis\": \"^0.10.3\",\r\n    \"sails-validation-messages\": \"0.0.0\"\r\n  },\r\n  \"name\": \"dating_room\",\r\n  \"private\": true,\r\n  \"version\": \"0.0.0\",\r\n  \"description\": \"a Sails application\",\r\n  \"keywords\": [],\r\n  \"scripts\": {\r\n    \"start\": \"sails lift\",\r\n    \"debug\": \"node debug app.js\"\r\n  },\r\n  \"main\": \"app.js\",\r\n  \"repository\": {\r\n    \"type\": \"git\",\r\n    \"url\": \"**********t\"\r\n  },\r\n  \"author\": \"*****\",\r\n  \"license\": \"\"\r\n}\r\n\r\n\r\n\r\n\r\n\r\nRunning \"bower:install\" (bower) task\r\n>> Installed bower packages\r\n>> Copied packages to /home/ubuntu/node_projects/dating_room/assets/vendor\r\n\r\nRunning \"clean:dev\" (clean) task\r\n\r\nRunning \"jst:dev\" (jst) task\r\nWarning: Cannot read property 'indexOf' of undefined Used --force, continuing.\r\n\r\nRunning \"less:dev\" (less) task\r\nFile .tmp/public/styles/importer.css created: 0 B → 79.95 kB\r\n\r\nRunning \"copy:dev\" (copy) task\r\nCopied 172 files\r\n\r\nRunning \"coffee:dev\" (coffee) task\r\n\r\nRunning \"sails-linker:devJs\" (sails-linker) task\r\nWarning: Cannot read property 'indexOf' of undefined Used --force, continuing.\r\n\r\nRunning \"sails-linker:devStyles\" (sails-linker) task\r\nWarning: Cannot read property 'indexOf' of undefined Used --force, continuing.\r\n\r\n\r\n\r\n\r\nRunning \"sails-linker:devTpl\" (sails-linker) task\r\npadding length 4\r\nFile \"views/layout.ejs\" updated.\r\n\r\nRunning \"sails-linker:devJsJade\" (sails-linker) task\r\nWarning: Cannot read property 'indexOf' of undefined Used --force, continuing.\r\n\r\nRunning \"sails-linker:devStylesJade\" (sails-linker) task\r\nWarning: Cannot read property 'indexOf' of undefined Used --force, continuing.\r\n\r\nRunning \"sails-linker:devTplJade\" (sails-linker) task\r\n"},"comment":{"url":"https://api.github.com/repos/balderdashy/sails/issues/comments/100245890","html_url":"https://github.com/balderdashy/sails/issues/2915#issuecomment-100245890","issue_url":"https://api.github.com/repos/balderdashy/sails/issues/2915","id":100245890,"user":{"login":"aato","id":1521747,"avatar_url":"https://avatars.githubusercontent.com/u/1521747?v=3","gravatar_id":"","url":"https://api.github.com/users/aato","html_url":"https://github.com/aato","followers_url":"https://api.github.com/users/aato/followers","following_url":"https://api.github.com/users/aato/following{/other_user}","gists_url":"https://api.github.com/users/aato/gists{/gist_id}","starred_url":"https://api.github.com/users/aato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aato/subscriptions","organizations_url":"https://api.github.com/users/aato/orgs","repos_url":"https://api.github.com/users/aato/repos","events_url":"https://api.github.com/users/aato/events{/privacy}","received_events_url":"https://api.github.com/users/aato/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T14:22:04Z","updated_at":"2015-05-08T14:22:04Z","body":"It's a wild guess but check your file permissions for your .tmp folder, especially the .tmp/public/jst.js file (since that's what jst:dev is trying to require when you get the error)."}}