-
Notifications
You must be signed in to change notification settings - Fork 12k
Missing App specific barrels 'shared' #1418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Closed as this issue was made obsolete by #1455. SystemJS is not used anymore after that PR, so this issue shouldn't happen. |
i am added to three model files to my componnent....one file is not loaded like below show example import { the company is not loaded to my component,i am add it on model/index also.and one more is in root config component this import barrels not working. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Was initially created in angular/angular.io#1896 but is an angular-cli error.
I create a sample project from scratch to reproduce the problem: https://github.com/francisoud/angular.io.issue.1896
I have same problem during runtime (in console log) in
contract-list.component.ts
and for test (as describe above).You were right the problem is in system-config.ts there are 2 lines that are missing and should have been added during
ng generate
(see command line below)I think it's a bug in angular-cli
I think something is missing during
ng generate component ...
somewhere near this line:https://github.com/angular/angular-cli/blob/master/addon/ng2/blueprints/component/index.js#L117
Additional info
Errors
Error at runtime
Error in tests
index.ts
It seems to me all index.ts are referencing the correct component:
https://github.com/francisoud/angular.io.issue.1896/blob/bug/src/app/index.ts
https://github.com/francisoud/angular.io.issue.1896/blob/bug/src/app/shared/index.ts
https://github.com/francisoud/angular.io.issue.1896/blob/bug/src/app/contracts/index.ts
https://github.com/francisoud/angular.io.issue.1896/blob/bug/src/app/contracts/contract-list/index.ts
https://github.com/francisoud/angular.io.issue.1896/blob/bug/src/app/contracts/contract-list/shared/index.ts
And they where updated when I created I used
ng generate ...
ng generate
Sample project
This version with the 2 issues (runtime and test):
https://github.com/francisoud/angular.io.issue.1896/tree/bug
The branch 'workaround':
https://github.com/francisoud/angular.io.issue.1896/tree/workaround (diff)
The branch 'fix':
https://github.com/francisoud/angular.io.issue.1896/tree/fix
Version
The text was updated successfully, but these errors were encountered: