-
Notifications
You must be signed in to change notification settings - Fork 295
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
Circular dependencies generated via flatModuleOutFile
#656
Labels
Comments
Austin says: "I expect that ng-packagr falls back to a file name that doesn't overlap existing source file" David says: "I expect that ngc gives a better error message" |
dherges
added a commit
to dherges/ngxs
that referenced
this issue
Mar 3, 2018
dherges
added a commit
that referenced
this issue
Mar 3, 2018
This issue has been automatically locked due to inactivity. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Type of Issue
Description
In
package.json
:The sources contain a file
src/ngx.ts
.It’s a bug in ng-packagr and/or ngc. What basically happens is:
src/ngxs
source file that re-exports symbols fromsrc/index
.src/index
imports fromsrc/ngxs
(the original source file)ng.createProgram()
),src/ngxs
is then resolved to the generated source file rather than the original source file. Since the generated filesrc/ngxs
imports fromsrc/index
andsrc/index
imports fromsrc/ngxs
there is a circular dependency.Resulting error is:
How To Reproduce
https://github.com/amcdnl/ngxs
Expected Behaviour
Build success 😛
Version Information
The text was updated successfully, but these errors were encountered: