payload: {"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-next/issues/3259","repository_url":"https://api.github.com/repos/strongloop/loopback-next","labels_url":"https://api.github.com/repos/strongloop/loopback-next/issues/3259/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-next/issues/3259/comments","events_url":"https://api.github.com/repos/strongloop/loopback-next/issues/3259/events","html_url":"https://github.com/strongloop/loopback-next/issues/3259","id":461485011,"node_id":"MDU6SXNzdWU0NjE0ODUwMTE=","number":3259,"title":"The application can't start after deleting some model, repository, and controllers","user":{"login":"m98","id":7496103,"node_id":"MDQ6VXNlcjc0OTYxMDM=","avatar_url":"https://avatars2.githubusercontent.com/u/7496103?v=4","gravatar_id":"","url":"https://api.github.com/users/m98","html_url":"https://github.com/m98","followers_url":"https://api.github.com/users/m98/followers","following_url":"https://api.github.com/users/m98/following{/other_user}","gists_url":"https://api.github.com/users/m98/gists{/gist_id}","starred_url":"https://api.github.com/users/m98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m98/subscriptions","organizations_url":"https://api.github.com/users/m98/orgs","repos_url":"https://api.github.com/users/m98/repos","events_url":"https://api.github.com/users/m98/events{/privacy}","received_events_url":"https://api.github.com/users/m98/received_events","type":"User","site_admin":false},"labels":[{"id":514690858,"node_id":"MDU6TGFiZWw1MTQ2OTA4NTg=","url":"https://api.github.com/repos/strongloop/loopback-next/labels/bug","name":"bug","color":"e99695","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-06-27T11:53:31Z","updated_at":"2019-06-27T12:43:37Z","closed_at":null,"author_association":"NONE","body":"<!-- 🚨 STOP 🚨 STOP 🚨 STOP 🚨\r\n\r\nHELP US HELP YOU, PLEASE\r\n- Do a quick search to avoid duplicate issues\r\n- Provide as much information as possible (reproduction sandbox, use case for features, etc.)\r\n- Consider using a more suitable venue for questions such as Stack Overflow, Gitter, etc.\r\n\r\nPlease fill in the *entire* template below.\r\n\r\n-->\r\n\r\n## Steps to reproduce\r\nGenerate two model, repository and controllers and build, then delete one of the model, repository, and controllers, and try to build again. In my case, I got an error from the model and repository which I already deleted, and it was trying to access it before the build process was complete\r\n\r\n## Current Behavior\r\nThe application on `npm start` tries to access deleted model or repository after I delete model and repository file, and also its link from index.ts \r\n\r\n## Expected Behavior\r\nAn easy way to delete a model, repository, and controllers using CLI to reduce such errors, And also not getting an error on manually deleting files.\r\n\r\nAdditionally, I tried to delete `dist` directory to rebuild the project, and I was getting an error that it was not able to build the project again without having access to `dist` directory which sounds odd if you compare it with other frameworks which `dist` is in `.gitignore` because it's only useful for build purposes.\r\n\r\n<!-- Describe what did you expect instead, what is the desired outcome? -->\r\n\r\n\r\n## Additional information\r\nWindows 10 `'win32', 'x64', '10.16.0'`\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-next/issues/comments/506329881","html_url":"https://github.com/strongloop/loopback-next/issues/3259#issuecomment-506329881","issue_url":"https://api.github.com/repos/strongloop/loopback-next/issues/3259","id":506329881,"node_id":"MDEyOklzc3VlQ29tbWVudDUwNjMyOTg4MQ==","user":{"login":"dhmlau","id":25489897,"node_id":"MDQ6VXNlcjI1NDg5ODk3","avatar_url":"https://avatars3.githubusercontent.com/u/25489897?v=4","gravatar_id":"","url":"https://api.github.com/users/dhmlau","html_url":"https://github.com/dhmlau","followers_url":"https://api.github.com/users/dhmlau/followers","following_url":"https://api.github.com/users/dhmlau/following{/other_user}","gists_url":"https://api.github.com/users/dhmlau/gists{/gist_id}","starred_url":"https://api.github.com/users/dhmlau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhmlau/subscriptions","organizations_url":"https://api.github.com/users/dhmlau/orgs","repos_url":"https://api.github.com/users/dhmlau/repos","events_url":"https://api.github.com/users/dhmlau/events{/privacy}","received_events_url":"https://api.github.com/users/dhmlau/received_events","type":"User","site_admin":false},"created_at":"2019-06-27T12:43:37Z","updated_at":"2019-06-27T12:43:37Z","author_association":"CONTRIBUTOR","body":"@m98, what's the error you're getting when running `npm start`?  \r\nI suspect that when you're deleting the models or other artifacts, the `index.ts` of the corresponding folders are not updated.  Could you please check if that's the case? "}}
other: {"actor":{"display_login":"dhmlau"}}