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

Angular 15, build failing "Cannot read properties of undefined (reading 'file')" #25497

Closed
1 task done
meraj-markettime opened this issue Jul 6, 2023 · 8 comments
Closed
1 task done

Comments

@meraj-markettime
Copy link

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

14.2.10

Description

Building a new Angular 15.2.9 project via @angular/cli fails.

Minimal Reproduction

ng build --configuration=production

Exception or Error

No response

Your Environment

Angular CLI: 15.2.8
Node: 16.13.0
Package Manager: npm 8.1.4
OS: win32 x64

Angular: 15.2.9
... animations, cdk, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router, service-worker

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1502.8
@angular-devkit/build-angular   15.2.8
@angular-devkit/core            15.2.8
@angular-devkit/schematics      15.2.8
@angular/cli                    15.2.8
@schematics/angular             15.2.8
rxjs                            7.8.1
typescript                      4.9.5

Anything else relevant?

No response

@thaoula
Copy link

thaoula commented Jul 6, 2023

@meraj-markettime are you using Azure DevOps.

We are getting this issue on Angular 15 and Angular 16 builds.

@meraj-markettime
Copy link
Author

no we are using AWS and Bitbucket pipelines

@meraj-markettime
Copy link
Author

image

@arluko
Copy link

arluko commented Jul 6, 2023

This seems to be related to #25496

@thaoula
Copy link

thaoula commented Jul 6, 2023

I just added this to package.json. I could build Angular 16 successfully.

"overrides": {
"@babel/traverse": "7.22.6"
}

As suggested here -
babel/babel#15752

@jgterradillos-stratio
Copy link

We are having the same problems. The same errors in angular 15 and 14. In new clean projects happends the same.

@alan-agius4
Copy link
Collaborator

Duplicate of #25496

@alan-agius4 alan-agius4 marked this as a duplicate of #25496 Jul 6, 2023
@alan-agius4 alan-agius4 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 6, 2023
@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 6, 2023
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

5 participants