{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia/cli/issues/591","repository_url":"https://api.github.com/repos/aurelia/cli","labels_url":"https://api.github.com/repos/aurelia/cli/issues/591/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/cli/issues/591/comments","events_url":"https://api.github.com/repos/aurelia/cli/issues/591/events","html_url":"https://github.com/aurelia/cli/issues/591","id":219648462,"number":591,"title":"jquery.inputmask gives file not found error during rebuild of bundle","user":{"login":"JeroenVinke","id":2189477,"avatar_url":"https://avatars3.githubusercontent.com/u/2189477?v=3","gravatar_id":"","url":"https://api.github.com/users/JeroenVinke","html_url":"https://github.com/JeroenVinke","followers_url":"https://api.github.com/users/JeroenVinke/followers","following_url":"https://api.github.com/users/JeroenVinke/following{/other_user}","gists_url":"https://api.github.com/users/JeroenVinke/gists{/gist_id}","starred_url":"https://api.github.com/users/JeroenVinke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeroenVinke/subscriptions","organizations_url":"https://api.github.com/users/JeroenVinke/orgs","repos_url":"https://api.github.com/users/JeroenVinke/repos","events_url":"https://api.github.com/users/JeroenVinke/events{/privacy}","received_events_url":"https://api.github.com/users/JeroenVinke/received_events","type":"User","site_admin":false},"labels":[{"id":185759254,"url":"https://api.github.com/repos/aurelia/cli/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-04-05T16:52:30Z","updated_at":"2017-04-05T20:33:23Z","closed_at":null,"body":"<!--\r\nBUGS: Please use this template.\r\n\r\nSUPPORT REQUESTS/QUESTIONS: If you have a support request or question please\r\nsubmit them to StackOverflow using the tags aurelia and aurelia-framework\r\nhttp://stackoverflow.com/questions/tagged/aurelia\r\nor the Aurelia Gitter https://gitter.im/aurelia/discuss\r\n\r\nBlue Spire offers paid support agreements. Further information regarding paid support\r\nmay be obtained by emailing support@bluespire.com\r\n\r\nFuture support requests submitted here will be closed.\r\n\r\nThe HTML comments below are for your reference, and are not displayed\r\nwhen your issue is submitted, feel free to leave them.\r\n\r\nChoose one of the two headings, delete the other.\r\n-->\r\n**I'm submitting a bug report**\r\n\r\n* **Library Version:**\r\n0.28.0\r\n\r\n\r\n**Please tell us about your environment:**\r\n* **Operating System:**\r\nOSX 10.x|Linux (distro)|Windows [7|8|8.1|10]\r\n\r\n* **Node Version:**\r\nany\r\n<!--\r\nMinimum supported Node version is latest Node 4.x LTS\r\nrun `node -v`\r\n-->\r\n\r\n* **NPM Version:**\r\nany\r\n<!--\r\nMinimum supported NPM version is 3.x\r\nrun `npm -v`\r\n-->\r\n\r\n\r\n**Current behavior:**\r\n1. `npm install jquery.inputmask jquery`\r\n2. use the following config in aurelia.json:\r\n   ```\r\n\r\n       \"jquery\",\r\n       {\r\n         \"name\": \"jquery.inputmask\",\r\n         \"main\": \"index.js\",\r\n         \"path\": \"../node_modules/jquery.inputmask\",\r\n         \"resources\": []\r\n       }\r\n   ```\r\n3. in app.js use `import 'jquery.inputmask';`\r\n4. observe that `au run --watch` works fine initially, and in the browser `window.Inputmask` is available\r\n5. in app.js, comment out the import line, save, and remove the comment again\r\n6. observe the following error:\r\n\r\n```\r\nFile not found or not accessible: C:/Development/aurelia-cli-instantsearch/src/inputmask.js. Requested by C:\\Development\\aurelia-cli-instantsearch\\src\\app.js\r\n{ Error: ENOENT: no such file or directory, open 'C:\\Development\\aurelia-cli-instantsearch\\src\\inputmask.js'\r\n    at Object.fs.openSync (fs.js:584:18)\r\n    at Object.fs.readFileSync (fs.js:491:33)\r\n    at Object.exports.readFileSync (C:\\Development\\cli\\lib\\file-system.js:74:13)\r\n    at fileRead (C:\\Development\\cli\\lib\\build\\bundled-source.js:101:27)\r\n    at Object.context.fileRead (C:\\Development\\cli\\lib\\build\\amodro-trace\\lib\\loader\\Loader.js:179:18)\r\n    at Object.context.load (C:\\Development\\cli\\lib\\build\\amodro-trace\\lib\\loader\\Loader.js:370:32)\r\n    at Module.load (eval at <anonymous> (C:\\Development\\cli\\lib\\build\\amodro-trace\\lib\\loader\\Loader.js:14:1), <anonymous>:832:29)\r\n    at Module.fetch (eval at <anonymous> (C:\\Development\\cli\\lib\\build\\amodro-trace\\lib\\loader\\Loader.js:14:1), <anonymous>:822:66)\r\n    at Module.check (eval at <anonymous> (C:\\Development\\cli\\lib\\build\\amodro-trace\\lib\\loader\\Loader.js:14:1), <anonymous>:854:30)\r\n    at Module.enable (eval at <anonymous> (C:\\Development\\cli\\lib\\build\\amodro-trace\\lib\\loader\\Loader.js:14:1), <anonymous>:1173:22)\r\n  errno: -4058,\r\n  code: 'ENOENT',\r\n  syscall: 'open',\r\n  path: 'C:\\\\Development\\\\aurelia-cli-instantsearch\\\\src\\\\inputmask.js' }\r\n```\r\n\r\n**Expected/desired behavior:**\r\n<!--\r\nIf the current behavior is a bug, please provide the steps to reproduce.\r\n-->\r\n\r\n\r\n* **What is the expected behavior?**\r\nit not to look for the inputmask.js (or related) file in that location\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aurelia/cli/issues/comments/291988214","html_url":"https://github.com/aurelia/cli/issues/591#issuecomment-291988214","issue_url":"https://api.github.com/repos/aurelia/cli/issues/591","id":291988214,"user":{"login":"cosmoKenney","id":3654426,"avatar_url":"https://avatars3.githubusercontent.com/u/3654426?v=3","gravatar_id":"","url":"https://api.github.com/users/cosmoKenney","html_url":"https://github.com/cosmoKenney","followers_url":"https://api.github.com/users/cosmoKenney/followers","following_url":"https://api.github.com/users/cosmoKenney/following{/other_user}","gists_url":"https://api.github.com/users/cosmoKenney/gists{/gist_id}","starred_url":"https://api.github.com/users/cosmoKenney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosmoKenney/subscriptions","organizations_url":"https://api.github.com/users/cosmoKenney/orgs","repos_url":"https://api.github.com/users/cosmoKenney/repos","events_url":"https://api.github.com/users/cosmoKenney/events{/privacy}","received_events_url":"https://api.github.com/users/cosmoKenney/received_events","type":"User","site_admin":false},"created_at":"2017-04-05T20:33:23Z","updated_at":"2017-04-05T20:33:23Z","body":"FYI, this is my current config in aurelia.json:\r\n```\r\n          {\r\n            \"name\": \"jquery.inputmask\",\r\n            \"main\": \"index\",\r\n            \"path\": \"../node_modules/jquery.inputmask\",\r\n            \"deps\": [\r\n              \"jquery\"\r\n            ],\r\n            \"exports\": \"$\"\r\n          }\r\n```\r\nAnd when I save my custom attribute where I have ```import 'jquery.inputmask';``` I get still get the following errors when I run au run --watch, then subsequently save the file:\r\n```\r\nStarting 'writeBundles'...\r\nTracing resources/attributes/input-mask...\r\nFile not found or not accessible: C:/VisualStudioOnline/Sandbox/Ken/Compline.National/Compline.National.Web/src/inputmask.dependencyLib.js. Requested by C:/VisualStudioOnline/Sandbox/Ken/Compline.National/Compline.National.Web/src/resources/attributes/input-mask.js\r\nFile not found or not accessible: C:/VisualStudioOnline/Sandbox/Ken/Compline.National/Compline.National.Web/src/inputmask.js. Requested by C:/VisualStudioOnline/Sandbox/Ken/Compline.National/Compline.National.Web/src/resources/attributes/input-mask.js\r\nFile not found or not accessible: C:/VisualStudioOnline/Sandbox/Ken/Compline.National/Compline.National.Web/src/inputmask.dependencyLib.js. Requested by C:/VisualStudioOnline/Sandbox/Ken/Compline.National/Compline.National.Web/src/resources/attributes/input-mask.js\r\nFile not found or not accessible: C:/VisualStudioOnline/Sandbox/Ken/Compline.National/Compline.National.Web/src/inputmask.js. Requested by C:/VisualStudioOnline/Sandbox/Ken/Compline.National/Compline.National.Web/src/resources/attributes/input-mask.js\r\nWriting app-bundle.js...\r\nFinished 'writeBundles'\r\nStarting 'reload'...\r\nFinished 'reload'\r\n```\r\n"}}
{"actor":{"display_login":"cosmoKenney"}}