{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/6195","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/6195/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/6195/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/6195/events","html_url":"https://github.com/angular/angular-cli/issues/6195","id":226574218,"node_id":"MDU6SXNzdWUyMjY1NzQyMTg=","number":6195,"title":"ng serve - npm linked library changes(updates) are not reflected in UI","user":{"login":"tirnovanuaurel","id":793366,"node_id":"MDQ6VXNlcjc5MzM2Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/793366?v=4","gravatar_id":"","url":"https://api.github.com/users/tirnovanuaurel","html_url":"https://github.com/tirnovanuaurel","followers_url":"https://api.github.com/users/tirnovanuaurel/followers","following_url":"https://api.github.com/users/tirnovanuaurel/following{/other_user}","gists_url":"https://api.github.com/users/tirnovanuaurel/gists{/gist_id}","starred_url":"https://api.github.com/users/tirnovanuaurel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tirnovanuaurel/subscriptions","organizations_url":"https://api.github.com/users/tirnovanuaurel/orgs","repos_url":"https://api.github.com/users/tirnovanuaurel/repos","events_url":"https://api.github.com/users/tirnovanuaurel/events{/privacy}","received_events_url":"https://api.github.com/users/tirnovanuaurel/received_events","type":"User","site_admin":false},"labels":[{"id":220593713,"node_id":"MDU6TGFiZWwyMjA1OTM3MTM=","url":"https://api.github.com/repos/angular/angular-cli/labels/help%20wanted","name":"help wanted","color":"0e8a16","default":true},{"id":372202241,"node_id":"MDU6TGFiZWwzNzIyMDIyNDE=","url":"https://api.github.com/repos/angular/angular-cli/labels/priority:%201%20(urgent)","name":"priority: 1 (urgent)","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":78,"created_at":"2017-05-05T13:32:08Z","updated_at":"2019-01-04T09:37:19Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION YOUR ISSUE MIGHT BE CLOSED WITHOUT INVESTIGATING\r\n-->\r\n### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] bug report -> please search issues before submitting\r\n- [ ] feature request\r\n```\r\n\r\n### Versions.\r\n<!--\r\nOutput from: `ng --version`.\r\nIf nothing, output from: `node --version` and `npm --version`.\r\n  Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)\r\n-->\r\n\r\n@angular/cli: 1.0.1\r\nnode: 6.10.1\r\nos: darwin x64\r\n@angular/common: 4.1.1\r\n@angular/core: 4.1.1\r\n@angular/forms: 4.1.1\r\n@angular/http: 4.1.1\r\n@angular/platform-browser: 4.1.1\r\n@angular/platform-browser-dynamic: 4.1.1\r\n@angular/router: 4.1.1\r\n@angular/cli: 1.0.1\r\n@angular/compiler: 4.1.1\r\n@angular/compiler-cli: 4.1.1\r\n\r\nmacOs Sierra 10.12.4\r\nNode: v6.10.1\r\nNpm: 3.10.10\r\n\r\n### Repro steps.\r\n<!--\r\nSimple steps to reproduce this bug.\r\nPlease include: commands run, packages added, related code changes.\r\nA link to a sample repo would help too.\r\n-->\r\n\r\n- Generate 'myProject' with angular-cli\r\n- Add a private npm package: npm install @private/etcPackage --save (it's a angular4 library)\r\n- Go to the private package local path and 'npm link'\r\n- Go to 'myProject' and run: npm link @private/etcPackage\r\n- Delete 'node_modules' from 'myProject/node_modules/@private/etcPackage'\r\n- start serve: ng serve --aot\r\n- on library project, '/localpath/etcPackage' run gulp (this will trigger watch and build on change)\r\n\r\nSince this dist folder it's linked with node_modules one in my angular project 'myProject' for every build the package is update.\r\n\r\n### The log given by the failure.\r\n<!-- Normally this include a stack trace and some more information. -->\r\n\r\nDoesn't update UI on changes.\r\n\r\n### Desired functionality.\r\n<!--\r\nWhat would like to see implemented?\r\nWhat is the usecase?\r\n-->\r\n\r\nWhen the library (etc - in our case) it's compiled along with it's resources, the angular-cli project should see the changes and update the UI. Eg: external html templates and css - not updated.\r\n\r\n### Mention any other details that might be useful.\r\n<!-- Please include a link to the repo if this is related to an OSS project. -->\r\n\r\n- I'm using templateUrl: 'etc.html' and not have any template inline;\r\n- If any change is made to componentName.ts file - this is reflected on screen (eg: variables);\r\n- Changes exist after library it gets build in 'myProject/node_modules/@private/etcPackage' folder, so link it's working;\r\n- Even if i refresh page, and I check main.bundle.js - changes are there compiled, but still are not visible on screen unless I stop serve and start it again.\r\n\r\n-- \r\n\r\nQuestion is, anything can be done or need create a separate watch script to support both the library and myProject?"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/451396418","html_url":"https://github.com/angular/angular-cli/issues/6195#issuecomment-451396418","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/6195","id":451396418,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTM5NjQxOA==","user":{"login":"synctom","id":26142377,"node_id":"MDQ6VXNlcjI2MTQyMzc3","avatar_url":"https://avatars2.githubusercontent.com/u/26142377?v=4","gravatar_id":"","url":"https://api.github.com/users/synctom","html_url":"https://github.com/synctom","followers_url":"https://api.github.com/users/synctom/followers","following_url":"https://api.github.com/users/synctom/following{/other_user}","gists_url":"https://api.github.com/users/synctom/gists{/gist_id}","starred_url":"https://api.github.com/users/synctom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/synctom/subscriptions","organizations_url":"https://api.github.com/users/synctom/orgs","repos_url":"https://api.github.com/users/synctom/repos","events_url":"https://api.github.com/users/synctom/events{/privacy}","received_events_url":"https://api.github.com/users/synctom/received_events","type":"User","site_admin":false},"created_at":"2019-01-04T09:37:19Z","updated_at":"2019-01-04T09:37:19Z","author_association":"NONE","body":"@ToniaDemchuk did you enable resource-inlining in tsconfig.lib.json?\r\n\r\n`\"angularCompilerOptions\": {\r\n    \"enableResourceInlining\": true\r\n}`"}}
{"actor":{"display_login":"synctom"}}