Skip to content
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

ERROR: EEXIST: file already exists during ng build command #18198

Closed
14 tasks
nordine2017gitHub opened this issue Jul 8, 2020 · 3 comments
Closed
14 tasks

ERROR: EEXIST: file already exists during ng build command #18198

nordine2017gitHub opened this issue Jul 8, 2020 · 3 comments

Comments

@nordine2017gitHub
Copy link

nordine2017gitHub commented Jul 8, 2020

🐞 Bug report

Command (mark with an x)

  • new
  • [x ] build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • xi18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

Yes, the previous version in which this bug was not present was: ....

Description

After linking the project with a custom library (my_custom_lib), I tried in vain to compile the project without success. On each attempt I have the error displayed below despite manual removal of the dist directory.

Thanks for our help.
Best Regards

🔬 Minimal Reproduction

npm i
npm link my_custom_lib
ng build

🔥 Exception or Error



Copying assets
ERROR: EEXIST: file already exists, mkdir 'C:\Users\me\ANGULAR\pci-2011-ts-demo-master\dist\pci-ts-demo\src\assets_dmo\images'
An unhandled exception occurred: EEXIST: file already exists, mkdir 'C:\Users\me\ANGULAR\pci-2011-ts-demo-master\dist\pci-ts-demo\src\assets_dmo\images'
See "C:\Users\ME~1\AppData\Local\Temp\ng-oZYljU\angular-errors.log" for further details.

🌍 Your Environment



Angular CLI: 9.1.7
Node: 12.18.2
OS: win32 x64

Angular: 9.1.11
... core, localize
Ivy Workspace: Yes

Package                             Version
-------------------------------------------------------------
@angular-devkit/architect           0.901.7
@angular-devkit/build-angular       0.901.7
@angular-devkit/build-ng-packagr    0.901.7
@angular-devkit/build-optimizer     0.901.7
@angular-devkit/build-webpack       0.901.7
@angular-devkit/core                9.1.7
@angular-devkit/schematics          9.1.7
@angular/animations                 9.1.10
@angular/cli                        9.1.7
@angular/common                     9.1.10
@angular/compiler                   9.1.10
@angular/compiler-cli               9.1.10
@angular/forms                      9.1.10
@angular/platform-browser           9.1.10
@angular/platform-browser-dynamic   9.1.10
@angular/router                     9.1.10
@ngtools/webpack                    9.1.7
@schematics/angular                 9.1.7
@schematics/update                  0.901.7
ng-packagr                          9.1.5
rxjs                                6.5.5
typescript                          3.8.3
webpack                             4.42.0

Anything else relevant?

@alan-agius4
Copy link
Collaborator

@nordine2017gitHub, can you please provide the contents of the log file?

@alan-agius4
Copy link
Collaborator

Will be solved in ng-packagr 10.0.1

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Aug 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants