Skip to content

nx build fail if using ignored files #34002

@robertIsaac

Description

@robertIsaac

Current Behavior

this is one of the strangest bugs I found
currently in this branch
https://github.com/SAP/fundamental-ngx/tree/chore/angular-21
if you try to run nx run ui5-webcomponents-fiori:build:production --skip-nx-cache it fails
but if you removed from the .gitignore from line 82 till the end it passes

Expected Behavior

it should passes even if the files are ignored

GitHub Repo

https://github.com/SAP/fundamental-ngx/tree/chore/angular-21

Steps to Reproduce

  1. clone the repo
  2. checkout branch chore/angular-21
  3. run nx run ui5-webcomponents-fiori:build:production --skip-nx-cache
  4. go to https://github.com/SAP/fundamental-ngx/blob/chore/angular-21/.gitignore#L82 and remove lines 82 till the end
  5. run the command in step 3 (now it will passes)

Nx Report

Node           : 22.17.0
OS             : darwin-arm64
Native Target  : aarch64-macos
yarn           : 4.12.0

nx                     : 22.3.3
@nx/js                 : 22.3.3
@nx/eslint             : 22.3.3
@nx/workspace          : 22.3.3
@nx/angular            : 22.3.3
@nx/jest               : 22.3.3
@nx/devkit             : 22.3.3
@nx/eslint-plugin      : 22.3.3
@nx/module-federation  : 22.3.3
@nx/plugin             : 22.3.3
@nx/rspack             : 22.3.3
@nx/web                : 22.3.3
@nx/webpack            : 22.3.3
typescript             : 5.9.3
---------------------------------------
Registered Plugins:
@nx/eslint/plugin
---------------------------------------
Community plugins:
angular-eslint : 21.1.0
---------------------------------------
Local workspace plugins:
@fundamental-ngx/webc-generator
@fundamental-ngx/nx-plugin
@fundamental-ngx/platform
@fundamental-ngx/core
@fundamental-ngx/cx
---------------------------------------
Cache Usage: 25.20 MB / 46.04 GB

Failure Logs

Building entry point '@fundamental-ngx/ui5-webcomponents-fiori'
------------------------------------------------------------------------------
✖ Compiling with Angular sources in partial compilation mode.

 NX   Cannot destructure property 'pos' of 'file.referencedFiles[index]' as it is undefined.

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

this is a blocker to update to latest nx and angular
and it's working fine in main branch

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions