Skip to content

[DMP 2026] Bug: AuthService Not Found Due to Permission Errors (EPERM) #135

@divysaxena24

Description

@divysaxena24

Description

Multiple components such as Login, App-Header, and Reset-Password are unable to locate AuthService from:

src/app/app-modules/core/services

Even though the AuthService file exists and is properly exported, the build process fails to resolve it.


Error Observed

  • Build tool throws EPERM (Permission Denied) errors
  • Errors occur while accessing the Babel cache inside:
.angular/cache

Root Cause

  • The issue appears to be related to file permission problems in the Angular cache directory.
  • Due to this, the build system cannot properly read/cache AuthService.
  • Potential secondary cause: circular dependencies involving AuthService.

Expected Behavior

  • Components should successfully import and use AuthService without build errors.

Actual Behavior

  • Build fails with module resolution errors.
  • AuthService is reported as missing despite being present and exported.

Suggested Fixes

1. Clear Angular Cache

rm -rf .angular/cache

2. Fix Permissions

chmod -R 755 .angular

3. Restart Development Server

ng serve

4. Check for Circular Dependencies

  • Inspect imports involving AuthService
  • Ensure no cyclic dependency chains exist

Environment

  • Angular Version:
  • Node Version:
  • OS:

Additional Notes

  • Issue may intermittently appear depending on cache state.
  • Clearing cache typically resolves it temporarily.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions