You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running polymer build in a project with a source file that imports several non-existing other source files, the build completes without errors but does not produce any output.
Seems like the same issue I observed in #904 but slightly more widespread than I had realized, I didn't realize normal imports would cause the same issue, not just lazy ones.
…found (#276)
* add a (failing) test case for https://github.com/Polymer/polymer-cli/issues/936
* ensure the build fails when more than one source file is missing
The 'analyze' phase of the build process completes when all source files are analyzed (scanned). A source file is analized when all its dependencies are resolved or rejected. When the sources stream is complete, _all_ pending source file promises need to be rejected--not only the first one. If some of the deferred dependencies remain pending, the analysis of the toplevel source file never continues after 'await this._cache.dependencyGraph.whenReady(resolvedUrl);'. That leads of a premature end of the analysis phase (without any errors).
* update CHANGELOG
* add test for lazy-import with broken path (#1)
add a test case to verify that this PR also fixes the issue https://github.com/Polymer/polymer-cli/issues/904
Description
When running
polymer build
in a project with a source file that imports several non-existing other source files, the build completes without errors but does not produce any output.source file:
output:
Versions & Environment
Steps to Reproduce
yarn install
(ornpm install
)polymer build
:yarn build
(ornpm run build
)non-existent-file-1.html
does not existsrc/app/minimal-app.html
: uncomment the<link rel="import" href="non-existent-file-2.html">
linepolymer build
:yarn build
(ornpm run build
)build/
) is emptyExpected Results
The build should fail. There should be 2 errors in the console - 2 files are missing.
Actual Results
The build does not report any errors (as if it passed OK). The build output directory does not contain the build output.
The text was updated successfully, but these errors were encountered: