Skip to content

Localized bundle generation fails if --watch flag is used #22395

@human33

Description

@human33

Which @angular/* package(s) are the source of the bug?

localize

Is this a regression?

Yes

Description

Build with --watch option fails with error like: ✖ Localized bundle generation failed: ENOENT: no such file or directory, open '/tmp/angular-cli-i18n-oPSjKQ/polyfills.js'. Error message changes from time to time (it complains about different directories in /tmp and two files: polyfills.js and main.js).
Full command is: npm run build -- --configuration development --watch

Project builds without --watch option without errors. Full command is: npm run build -- --configuration development

It used to work correctly on "^12.2.3" version of angular packages, and it broke since I've updated to "^13.1.0".

Please provide a link to a minimal reproduction of the bug

https://github.com/human33/angular-i18n-min-reproduction

Please provide the exception or error you saw

✖ Localized bundle generation failed: ENOENT: no such file or directory, open '/tmp/angular-cli-i18n-oPSjKQ/polyfills.js'

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 13.1.2
Node: 12.22.5
Package Manager: npm 7.5.2
OS: linux x64

Angular: 13.1.1
... animations, cdk, common, compiler, compiler-cli, core, forms
... localize, material, platform-browser
... platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1301.2
@angular-devkit/build-angular   13.1.2
@angular-devkit/core            13.1.2
@angular-devkit/schematics      13.1.2
@angular/cli                    13.1.2
@schematics/angular             13.1.2
rxjs                            7.4.0
typescript                      4.5.4

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions