{"action":"created","issue":{"url":"https://api.github.com/repos/RobinHerbots/Inputmask/issues/1877","repository_url":"https://api.github.com/repos/RobinHerbots/Inputmask","labels_url":"https://api.github.com/repos/RobinHerbots/Inputmask/issues/1877/labels{/name}","comments_url":"https://api.github.com/repos/RobinHerbots/Inputmask/issues/1877/comments","events_url":"https://api.github.com/repos/RobinHerbots/Inputmask/issues/1877/events","html_url":"https://github.com/RobinHerbots/Inputmask/issues/1877","id":319551749,"number":1877,"title":"Uncaught TypeError: Cannot read property 'length' of undefined","user":{"login":"skuppi","id":26465549,"avatar_url":"https://avatars0.githubusercontent.com/u/26465549?v=4","gravatar_id":"","url":"https://api.github.com/users/skuppi","html_url":"https://github.com/skuppi","followers_url":"https://api.github.com/users/skuppi/followers","following_url":"https://api.github.com/users/skuppi/following{/other_user}","gists_url":"https://api.github.com/users/skuppi/gists{/gist_id}","starred_url":"https://api.github.com/users/skuppi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skuppi/subscriptions","organizations_url":"https://api.github.com/users/skuppi/orgs","repos_url":"https://api.github.com/users/skuppi/repos","events_url":"https://api.github.com/users/skuppi/events{/privacy}","received_events_url":"https://api.github.com/users/skuppi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-02T13:26:49Z","updated_at":"2018-05-02T14:25:30Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nI am working with Meteor and installed the inputmask (meteor npm install inputmask --save).\r\nI am setting up the input field dynamically with the mask for phone# and it works great in my development server (Linux Ubuntu). \r\ni.e.\r\nimport Inputmask from \"inputmask\";        \r\nconst _telInputMask = new Inputmask(\"(999) 999-9999\");  //InputMask for phone\r\nlet _tel;\r\n.\r\n.\r\nlater in the code:\r\n        _tel =document.getElementById(\"genralFieldValue\");\r\n        _telInputMask.mask(_tel); \r\n\r\nNow, when I build my app (meteor build .) and deploy it to my staging server (Linux Ubuntu), as soon as I get to this field I am getting a reference error. as follows:\r\n\r\nUncaught TypeError: Cannot read property 'length' of undefined\r\n    at oe (7c8e673cb9ecd17c415d3f9ce6972eec2d4bf51e.js?meteor_js_resource=true:17)\r\n    at Z (7c8e673cb9ecd17c415d3f9ce6972eec2d4bf51e.js?meteor_js_resource=true:17)\r\n    at HTMLInputElement.<anonymous> (7c8e673cb9ecd17c415d3f9ce6972eec2d4bf51e.js?meteor_js_resource=true:17)\r\n    at Function.z.each (7c8e673cb9ecd17c415d3f9ce6972eec2d4bf51e.js?meteor_js_resource=true:17)\r\n    at J.mask (7c8e673cb9ecd17c415d3f9ce6972eec2d4bf51e.js?meteor_js_resource=true:17)\r\n    at p (7c8e673cb9ecd17c415d3f9ce6972eec2d4bf51e.js?meteor_js_resource=true:207)\r\n    at Object.keypress input (7c8e673cb9ecd17c415d3f9ce6972eec2d4bf51e.js?meteor_js_resource=true:207)\r\n    at 7c8e673cb9ecd17c415d3f9ce6972eec2d4bf51e.js?meteor_js_resource=true:93\r\n    at Function.e._withTemplateInstanceFunc \r\nAny Ideas what I am missing???\r\n\r\nThank you for your help.\r\n\r\nShlomo\r\n"},"comment":{"url":"https://api.github.com/repos/RobinHerbots/Inputmask/issues/comments/385996056","html_url":"https://github.com/RobinHerbots/Inputmask/issues/1877#issuecomment-385996056","issue_url":"https://api.github.com/repos/RobinHerbots/Inputmask/issues/1877","id":385996056,"user":{"login":"skuppi","id":26465549,"avatar_url":"https://avatars0.githubusercontent.com/u/26465549?v=4","gravatar_id":"","url":"https://api.github.com/users/skuppi","html_url":"https://github.com/skuppi","followers_url":"https://api.github.com/users/skuppi/followers","following_url":"https://api.github.com/users/skuppi/following{/other_user}","gists_url":"https://api.github.com/users/skuppi/gists{/gist_id}","starred_url":"https://api.github.com/users/skuppi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skuppi/subscriptions","organizations_url":"https://api.github.com/users/skuppi/orgs","repos_url":"https://api.github.com/users/skuppi/repos","events_url":"https://api.github.com/users/skuppi/events{/privacy}","received_events_url":"https://api.github.com/users/skuppi/received_events","type":"User","site_admin":false},"created_at":"2018-05-02T14:25:30Z","updated_at":"2018-05-02T14:25:30Z","author_association":"NONE","body":"Hi,\nNo, I don't have the link.\n\nthank you\n\n\nOn Wed, May 2, 2018 at 5:02 PM, Robin Herbots <notifications@github.com>\nwrote:\n\n> @skuppi <https://github.com/skuppi> ,\n>\n> Can you try with the 4.x beta. Do you have a public link to your site?\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/RobinHerbots/Inputmask/issues/1877#issuecomment-385988264>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AZPVDVcsfs4nJ4ZeGWLRyay9FYvHdHNcks5tubyKgaJpZM4TvdCy>\n> .\n>\n\n\n\n-- \nShlomo:-)\n"}}
{"actor":{"display_login":"skuppi"}}