-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Circular source file mapping dependency on extract-i18n #40408
Labels
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
state: has PR
Milestone
Comments
I think this is likely to be an issue with either ngcc or localize (or both) which are part of the main repository. So transferring this issue there. |
jelbourn
added
the
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
label
Jan 13, 2021
petebacondarwin
added a commit
to petebacondarwin/angular
that referenced
this issue
Jan 14, 2021
When a source-map has an inline source, any source-map linked from that source should only be loaded if itself is also inline; it should not attempt to load a source-map from the file-system. Otherwise we can find ourselves with inadvertent infinite cyclic dependencies. For example if a transpiler takes a file (e.g. index.js) and generates a new file overwriting the original file (but capturing the original source inline in the new source-map (index.js.map) the source file loader might read the inline original file (also index.js) and then try to load the `index.js.map` file from disk - ad infinitum. Fixes angular#40408
petebacondarwin
added a commit
to petebacondarwin/angular
that referenced
this issue
Jan 15, 2021
When a source-map has an inline source, any source-map linked from that source should only be loaded if itself is also inline; it should not attempt to load a source-map from the file-system. Otherwise we can find ourselves with inadvertent infinite cyclic dependencies. For example if a transpiler takes a file (e.g. index.js) and generates a new file overwriting the original file (but capturing the original source inline in the new source-map (index.js.map) the source file loader might read the inline original file (also index.js) and then try to load the `index.js.map` file from disk - ad infinitum. Fixes angular#40408
petebacondarwin
added a commit
to petebacondarwin/angular
that referenced
this issue
Jan 15, 2021
When a source-map has an inline source, any source-map linked from that source should only be loaded if itself is also inline; it should not attempt to load a source-map from the file-system. Otherwise we can find ourselves with inadvertent infinite cyclic dependencies. For example if a transpiler takes a file (e.g. index.js) and generates a new file overwriting the original file (but capturing the original source inline in the new source-map (index.js.map) the source file loader might read the inline original file (also index.js) and then try to load the `index.js.map` file from disk - ad infinitum. Fixes angular#40408
petebacondarwin
added a commit
to petebacondarwin/angular
that referenced
this issue
Jan 15, 2021
When a source-map has an inline source, any source-map linked from that source should only be loaded if itself is also inline; it should not attempt to load a source-map from the file-system. Otherwise we can find ourselves with inadvertent infinite cyclic dependencies. For example if a transpiler takes a file (e.g. index.js) and generates a new file overwriting the original file (but capturing the original source inline in the new source-map (index.js.map) the source file loader might read the inline original file (also index.js) and then try to load the `index.js.map` file from disk - ad infinitum. Note that the first call to `loadSourceFile()` is special, since you can pass in the source-file and source-map contents directly; this is common if the transpiler has just generated these and saves writing them to disk. When these are passed into `loadSourceFile()` directly, they are not treated as "inline" for the purposes described above, since there is no chance of these "in-memory" source-file and source-map being caught up in a cyclic dependency. Fixes angular#40408
petebacondarwin
added a commit
to petebacondarwin/angular
that referenced
this issue
Jan 15, 2021
When a source-map has an inline source, any source-map linked from that source should only be loaded if itself is also inline; it should not attempt to load a source-map from the file-system. Otherwise we can find ourselves with inadvertent infinite cyclic dependencies. For example if a transpiler takes a file (e.g. index.js) and generates a new file overwriting the original file (but capturing the original source inline in the new source-map (index.js.map) the source file loader might read the inline original file (also index.js) and then try to load the `index.js.map` file from disk - ad infinitum. Note that the first call to `loadSourceFile()` is special, since you can pass in the source-file and source-map contents directly; this is common if the transpiler has just generated these and saves writing them to disk. When these are passed into `loadSourceFile()` directly, they are not treated as "inline" for the purposes described above, since there is no chance of these "in-memory" source-file and source-map being caught up in a cyclic dependency. Fixes angular#40408
petebacondarwin
added a commit
to petebacondarwin/angular
that referenced
this issue
Jan 16, 2021
When a source-map has an inline source, any source-map linked from that source should only be loaded if itself is also inline; it should not attempt to load a source-map from the file-system. Otherwise we can find ourselves with inadvertent infinite cyclic dependencies. For example if a transpiler takes a file (e.g. index.js) and generates a new file overwriting the original file (but capturing the original source inline in the new source-map (index.js.map) the source file loader might read the inline original file (also index.js) and then try to load the `index.js.map` file from disk - ad infinitum. Note that the first call to `loadSourceFile()` is special, since you can pass in the source-file and source-map contents directly; this is common if the transpiler has just generated these and saves writing them to disk. When these are passed into `loadSourceFile()` directly, they are not treated as "inline" for the purposes described above, since there is no chance of these "in-memory" source-file and source-map being caught up in a cyclic dependency. Fixes angular#40408
petebacondarwin
added a commit
to petebacondarwin/angular
that referenced
this issue
Jan 16, 2021
When a source-map has an inline source, any source-map linked from that source should only be loaded if itself is also inline; it should not attempt to load a source-map from the file-system. Otherwise we can find ourselves with inadvertent infinite cyclic dependencies. For example if a transpiler takes a file (e.g. index.js) and generates a new file overwriting the original file (but capturing the original source inline in the new source-map (index.js.map) the source file loader might read the inline original file (also index.js) and then try to load the `index.js.map` file from disk - ad infinitum. Note that the first call to `loadSourceFile()` is special, since you can pass in the source-file and source-map contents directly; this is common if the transpiler has just generated these and saves writing them to disk. When these are passed into `loadSourceFile()` directly, they are not treated as "inline" for the purposes described above, since there is no chance of these "in-memory" source-file and source-map being caught up in a cyclic dependency. Fixes angular#40408
petebacondarwin
added a commit
to petebacondarwin/angular
that referenced
this issue
Jan 16, 2021
When a source-map has an inline source, any source-map linked from that source should only be loaded if itself is also inline; it should not attempt to load a source-map from the file-system. Otherwise we can find ourselves with inadvertent infinite cyclic dependencies. For example if a transpiler takes a file (e.g. index.js) and generates a new file overwriting the original file (but capturing the original source inline in the new source-map (index.js.map) the source file loader might read the inline original file (also index.js) and then try to load the `index.js.map` file from disk - ad infinitum. Note that the first call to `loadSourceFile()` is special, since you can pass in the source-file and source-map contents directly; this is common if the transpiler has just generated these and saves writing them to disk. When these are passed into `loadSourceFile()` directly, they are not treated as "inline" for the purposes described above, since there is no chance of these "in-memory" source-file and source-map being caught up in a cyclic dependency. Fixes angular#40408
petebacondarwin
added a commit
to petebacondarwin/angular
that referenced
this issue
Jan 17, 2021
When a source-map has an inline source, any source-map linked from that source should only be loaded if itself is also inline; it should not attempt to load a source-map from the file-system. Otherwise we can find ourselves with inadvertent infinite cyclic dependencies. For example, if a transpiler takes a file (e.g. index.js) and generates a new file overwriting the original file - capturing the original source inline in the new source-map (index.js.map) - the source file loader might read the inline original file (also index.js) and then try to load the `index.js.map` file from disk - ad infinitum. Note that the first call to `loadSourceFile()` is special, since you can pass in the source-file and source-map contents directly as in-memory strrngs. This is common if the transpiler has just generated these and has not yet written them to disk. When the contents are passed into `loadSourceFile()` directly, they are not treated as "inline" for the purposes described above since there is no chance of these "in-memory" source and source-map contents being caught up in a cyclic dependency. Fixes angular#40408
petebacondarwin
added a commit
to petebacondarwin/angular
that referenced
this issue
Jan 17, 2021
When a source-map has an inline source, any source-map linked from that source should only be loaded if itself is also inline; it should not attempt to load a source-map from the file-system. Otherwise we can find ourselves with inadvertent infinite cyclic dependencies. For example, if a transpiler takes a file (e.g. index.js) and generates a new file overwriting the original file - capturing the original source inline in the new source-map (index.js.map) - the source file loader might read the inline original file (also index.js) and then try to load the `index.js.map` file from disk - ad infinitum. Note that the first call to `loadSourceFile()` is special, since you can pass in the source-file and source-map contents directly as in-memory strrngs. This is common if the transpiler has just generated these and has not yet written them to disk. When the contents are passed into `loadSourceFile()` directly, they are not treated as "inline" for the purposes described above since there is no chance of these "in-memory" source and source-map contents being caught up in a cyclic dependency. Fixes angular#40408
petebacondarwin
added a commit
to petebacondarwin/angular
that referenced
this issue
Jan 20, 2021
When a source-map has an inline source, any source-map linked from that source should only be loaded if itself is also inline; it should not attempt to load a source-map from the file-system. Otherwise we can find ourselves with inadvertent infinite cyclic dependencies. For example, if a transpiler takes a file (e.g. index.js) and generates a new file overwriting the original file - capturing the original source inline in the new source-map (index.js.map) - the source file loader might read the inline original file (also index.js) and then try to load the `index.js.map` file from disk - ad infinitum. Note that the first call to `loadSourceFile()` is special, since you can pass in the source-file and source-map contents directly as in-memory strrngs. This is common if the transpiler has just generated these and has not yet written them to disk. When the contents are passed into `loadSourceFile()` directly, they are not treated as "inline" for the purposes described above since there is no chance of these "in-memory" source and source-map contents being caught up in a cyclic dependency. Fixes angular#40408
jessicajaniuk
pushed a commit
that referenced
this issue
Jan 21, 2021
When a source-map has an inline source, any source-map linked from that source should only be loaded if itself is also inline; it should not attempt to load a source-map from the file-system. Otherwise we can find ourselves with inadvertent infinite cyclic dependencies. For example, if a transpiler takes a file (e.g. index.js) and generates a new file overwriting the original file - capturing the original source inline in the new source-map (index.js.map) - the source file loader might read the inline original file (also index.js) and then try to load the `index.js.map` file from disk - ad infinitum. Note that the first call to `loadSourceFile()` is special, since you can pass in the source-file and source-map contents directly as in-memory strrngs. This is common if the transpiler has just generated these and has not yet written them to disk. When the contents are passed into `loadSourceFile()` directly, they are not treated as "inline" for the purposes described above since there is no chance of these "in-memory" source and source-map contents being caught up in a cyclic dependency. Fixes #40408 PR Close #40435
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
state: has PR
馃悶 Bug report
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was: 10.x (using
ng xi18n --ivy
).Description
Running
ng extract-i18n
warns aboutCircular source file mapping dependency
(full output below) when the project reference Kendo UI for Angular packages. The packages do not contain source maps.The warning is not present when runing
ng serve
andng build
in development or production mode.馃敩 Minimal Reproduction
npm install
ng extract-i18n
馃敟 Exception or Error
馃實 Your Environment
Anything else relevant?
Possibly related:
The text was updated successfully, but these errors were encountered: