{"action":"opened","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/5217","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/5217/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/5217/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/5217/events","html_url":"https://github.com/angular/angular-cli/issues/5217","id":211845684,"number":5217,"title":"Referring a typescript file outside project directory is not working","user":{"login":"sugarg","id":947278,"avatar_url":"https://avatars3.githubusercontent.com/u/947278?v=3","gravatar_id":"","url":"https://api.github.com/users/sugarg","html_url":"https://github.com/sugarg","followers_url":"https://api.github.com/users/sugarg/followers","following_url":"https://api.github.com/users/sugarg/following{/other_user}","gists_url":"https://api.github.com/users/sugarg/gists{/gist_id}","starred_url":"https://api.github.com/users/sugarg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sugarg/subscriptions","organizations_url":"https://api.github.com/users/sugarg/orgs","repos_url":"https://api.github.com/users/sugarg/repos","events_url":"https://api.github.com/users/sugarg/events{/privacy}","received_events_url":"https://api.github.com/users/sugarg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-04T01:55:53Z","updated_at":"2017-03-04T01:55:53Z","closed_at":null,"body":"OS: Windows 10\r\nVersions: 1.0.0-rc.0\r\n\r\n**Following is my directory structure:**\r\n---MainProject\r\n     ---src\r\n     ---.angular-cli.json\r\n     ---package.json\r\n----Shared\r\n     ---package.json\r\n     ---Service\r\n           ---service.ts\r\n\r\nIn MainProject, I am trying to refer Shared/Service/service.ts file (file is outside of MainProject folder). Service.ts file has import { Injectable, Injector } from \"@angular/core\"; and import { Router } from \"@angular/router\"; in it. I was getting @angular/core and @angule/router not found error while compiling therefore I included package.json in Shared folder which has reference to these packages and did npm install in Shared directory. Developer build of MainProject is working fine but prod build is giving following error. Please if someone can help in resolving it.\r\n\r\n\r\n_ERROR in Error encountered resolving symbol values statically. Calling function 'makeDecorator', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol Injectable in C:/Apps/Shared/node_modules/@angular/core/src/di/metadata.d.ts, resolving symbol OpaqueToken in C:/Apps/Shared/node_modules/@angular/core/src/di/opaque_token.d.ts, resolving symbol OpaqueToken in C:/Apps/Shared/node_modules/@angular/core/src/di/opaque_token.d.ts\r\n\r\nERROR in ./src/main.ts\r\nModule not found: Error: Can't resolve './$$_gendir/modules/uci.app.module.ngfactory' in 'C:\\Apps\\MainProject\\src'\r\n @ ./src/main.ts 4:0-85\r\n @ multi ./src/main.ts_"}}
{"actor":{"display_login":"sugarg"}}