Skip to content

Build error after upgrading from 18.0.6 to 18.2.3 #28390

Closed

Description

@alextse

Which @angular/* package(s) are the source of the bug?

Don't known / other

Is this a regression?

Yes

Description

Getting the following error after upgrading from 18.0.6 to 18.2.3. Not sure whether it's issue from Angular or Azure Storage Blob.

9:00:46 PM [vite] Error when evaluating SSR module /@fs/home/git/app/.angular/cache/18.2.3/vite/deps_ssr/@azure_storage-blob.js?v=e87b4b88:
|- TypeError: Cannot read properties of undefined (reading 'MAX_LENGTH')
    at eval (/home/git/app/.angular/cache/18.2.3/vite/deps_ssr/@azure_storage-blob.js:24853:55)

To Reproduce
Steps to reproduce the behavior:

  1. Setup Angular 18 App with SSR
  2. Install @azure/storage-blob package
  3. import { BlockBlobClient } from '@azure/storage-blob'; in one of the component
  4. Build and run the Angular app.
  5. The last line below is throwing the exception.
// node_modules/@azure/storage-blob/dist-esm/storage-common/src/PooledBuffer.js
var import_buffer = __toESM(require_buffer());
var maxBufferLength = import_buffer.default.constants.MAX_LENGTH;

Expected behavior
No error to occur.

Screenshots
N/A

Additional context
N/A

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

9:00:46 PM [vite] Error when evaluating SSR module /@fs/home/git/app/.angular/cache/18.2.3/vite/deps_ssr/@azure_storage-blob.js?v=e87b4b88:
|- TypeError: Cannot read properties of undefined (reading 'MAX_LENGTH')
    at eval (/home/git/app/.angular/cache/18.2.3/vite/deps_ssr/@azure_storage-blob.js:24853:55)

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 18.2.3
Node: 20.15.0
Package Manager: npm 10.8.3
OS: linux x64

Angular: 18.0.5
... animations, cdk, common, compiler, compiler-cli, core, forms
... material, platform-browser, platform-browser-dynamic
... platform-server, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1802.3
@angular-devkit/build-angular   18.2.3
@angular-devkit/core            18.2.3
@angular-devkit/schematics      18.2.3
@angular/cli                    18.2.3
@angular/ssr                    18.2.3
@schematics/angular             18.2.3
rxjs                            7.8.1
typescript                      5.4.5
zone.js                         0.14.10

Anything else?

No response

Activity

  1. transferred this issue fromangular/angularon Sep 11, 2024
  2. added 2 commits that reference this issue on Sep 11, 2024
    7c6ce13
    8b06d99
  3. added 2 commits that reference this issue on Sep 11, 2024
    4153a6e
    765309a
  4. angular-automatic-lock-bot commented on Oct 12, 2024

    @angular-automatic-lock-bot

    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.

  5. locked and limited conversation to collaborators on Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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