Skip to content

WASM support regression when switching to the esbuild builder #26826

@demurgos

Description

@demurgos

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

compiler

Is this a regression?

Yes

Description

I am updating my project from "builder": "@angular-devkit/build-angular:browser" to "builder": "@angular-devkit/build-angular:application", since it's the recommended builder.

Unfortunately, I now get an error related to a WASM module in one of my dependencies. No Wasm support is a blocker for me to update.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

✘ [ERROR] No loader is configured for ".wasm" files: ../../../../../../home/demurgos/.yarn/berry/cache/@eternal-twin-marktwin-npm-0.5.0-dfc7fb40c3-10.zip/node_modules/@eternal-twin/marktwin/lib/wasm/index_bg.wasm

    ../../../../../../home/demurgos/.yarn/berry/cache/@eternal-twin-marktwin-npm-0.5.0-dfc7fb40c3-10.zip/node_modules/@eternal-twin/marktwin/lib/wasm/index.js:1:22:
      1 │ import * as wasm from "./index_bg.wasm";
        ╵                       ~~~~~~~~~~~~~~~~~

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

Angular CLI: 17.0.9
Node: 21.5.0 (Unsupported)
Package Manager: yarn 4.0.2-git.20240103.hash-c68c716
OS: linux x64

Angular: 17.0.8
... animations, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, platform-server, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1700.9 (cli-only)
@angular-devkit/build-angular   17.0.9
@angular-devkit/core            17.0.9 (cli-only)
@angular-devkit/schematics      17.0.9 (cli-only)
@angular/cli                    17.0.9
@angular/ssr                    17.0.9
@schematics/angular             17.0.9 (cli-only)
rxjs                            7.8.1
typescript                      5.3.3
zone.js                         0.14.2
    
Warning: The current version of Node (21.5.0) is not supported by Angular.

Anything else?

No response

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