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

browser-esbuild: An unhandled exception occurred: EPERM: operation not permitted, copyfile #26021

Closed
1 task done
zip-fa opened this issue Oct 12, 2023 · 2 comments · Fixed by #26022
Closed
1 task done

Comments

@zip-fa
Copy link

zip-fa commented Oct 12, 2023

Command

build

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Hi. browser-esbuild gives up with this error:

An unhandled exception occurred: EPERM: operation not permitted, copyfile 'C:\Users\123\WebstormProjects\123\src\manifest.json' -> 'C:\Users\123\WebstormProjects\123\dist\123'
See "C:\Users\ikpoc\AppData\Local\Temp\ng-G3vwG2\angular-errors.log" for further details.

Error log is the same. Tried running with admin privileges with same result.

Minimal Reproduction

ng build

Exception or Error

No response

Your Environment

Angular CLI: 17.0.0-next.8
Node: 18.18.1
Package Manager: npm 9.8.1
OS: win32 x64

Angular: 17.0.0-next.8
... animations, cli, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic
... platform-server, router, service-worker, ssr

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1700.0-next.8
@angular-devkit/build-angular   17.0.0-next.8
@angular-devkit/core            17.0.0-next.8
@angular-devkit/schematics      17.0.0-next.8
@angular/cdk                    17.0.0-next.6
@angular/material               17.0.0-next.6
@schematics/angular             16.2.5
rxjs                            7.8.1
typescript                      5.2.2
zone.js                         0.14.0

Anything else relevant?

No response

@zip-fa
Copy link
Author

zip-fa commented Oct 12, 2023

Update: created fresh project with ng new, same error:

An unhandled exception occurred: EPERM: operation not permitted, copyfile 'C:\Users\123\WebstormProjects\test-project\src\favicon.ico' -> 'C:\Users\123\WebstormProjects\test-project\dist\test-project'

@alan-agius4 alan-agius4 self-assigned this Oct 12, 2023
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Oct 12, 2023
… writes in browser-esbuild builder

This commit ports angular#26016 to the esbuilder and also fixes an issue where assets were being outputted in the wrong directory.

Closes angular#26021
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Oct 12, 2023
… writes in browser-esbuild builder

This commit ports angular#26016 to the esbuilder and also fixes an issue where assets were being outputted in the wrong directory.

Closes angular#26021
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Oct 12, 2023
… writes in browser-esbuild builder

This commit ports angular#26016 to the esbuilder and also fixes an issue where assets were being outputted in the wrong directory.

Closes angular#26021
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Oct 12, 2023
… writes in browser-esbuild builder

This commit ports angular#26016 to the esbuilder and also fixes an issue where assets were being outputted in the wrong directory.

Closes angular#26021
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Oct 12, 2023
… writes in browser-esbuild builder

This commit ports angular#26016 to the esbuilder and also fixes an issue where assets were being outputted in the wrong directory.

Closes angular#26021
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Oct 12, 2023
… writes in browser-esbuild builder

This commit ports angular#26016 to the esbuilder and also fixes an issue where assets were being outputted in the wrong directory.

Closes angular#26021
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Oct 12, 2023
… writes in browser-esbuild builder

This commit ports angular#26016 to the esbuilder and also fixes an issue where assets were being outputted in the wrong directory.

Closes angular#26021
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Oct 12, 2023
… writes in browser-esbuild builder

This commit ports angular#26016 to the esbuilder and also fixes an issue where assets were being outputted in the wrong directory.

Closes angular#26021
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Oct 12, 2023
… writes in browser-esbuild builder

This commit ports angular#26016 to the esbuilder and also fixes an issue where assets were being outputted in the wrong directory.

Closes angular#26021
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Oct 12, 2023
… writes in browser-esbuild builder

This commit ports angular#26016 to the esbuilder and also fixes an issue where assets were being outputted in the wrong directory.

Closes angular#26021
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Oct 12, 2023
… writes in browser-esbuild builder

This commit ports angular#26016 to the esbuilder and also fixes an issue where assets were being outputted in the wrong directory.

Closes angular#26021
alan-agius4 added a commit that referenced this issue Oct 12, 2023
… writes in browser-esbuild builder

This commit ports #26016 to the esbuilder and also fixes an issue where assets were being outputted in the wrong directory.

Closes #26021
alan-agius4 added a commit that referenced this issue Oct 12, 2023
… writes in browser-esbuild builder

This commit ports #26016 to the esbuilder and also fixes an issue where assets were being outputted in the wrong directory.

Closes #26021

(cherry picked from commit b2678bb)
SarthakD15 pushed a commit to SarthakD15/angular-cli that referenced this issue Oct 16, 2023
… writes in browser-esbuild builder

This commit ports angular#26016 to the esbuilder and also fixes an issue where assets were being outputted in the wrong directory.

Closes angular#26021

fix(@schematics/angular): change Twitter logo to X
alan-agius4 added a commit to SarthakD15/angular-cli that referenced this issue Oct 17, 2023
… writes in browser-esbuild builder

This commit ports angular#26016 to the esbuilder and also fixes an issue where assets were being outputted in the wrong directory.

Closes angular#26021

fix(@schematics/angular): change Twitter logo to X
@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 Nov 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.