-
Notifications
You must be signed in to change notification settings - Fork 12k
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
ng18 esbuild-based browser doesn't support .node loading unlike webpack #28781
Comments
This is unfortunately an issue with the package in question. |
@clydin yes, thank you I had read about napi-rs/node-rs#792 which doesn't work as a force install this install stuff is new to me... so |
The With
After manually installing
With version 1.9.0:
|
ok, let me go back to (webpack) browser build and look at bundle analyzer to see if it's even included. I know if I exclude
|
Command
build
Is this a regression?
The previous version in which this bug was not present was
ng18 + webpack
Description
went from ng16 to 18.2.8 and manually converting (nx workspace) to new esbuild remain not possible due to 1 blocking issue. can't load .node file
I used this doc which make it sound like a liner changeto use browser-esbuild https://angular.dev/tools/cli/build-system-migration, which is NOT the case. lots of file changed to fix
Minimal Reproduction
"builder": "@angular-devkit/build-angular:browser-esbuild"
(I also tried "builder": "@angular-devkit/build-angular:application" and that only required a few more stting, but no behavior change)
which is used indirectly by 2 level above
(apparently webpack must incude it, but even compatibility browser-esbuild does not ?
Exception or Error
X [ERROR] No loader is configured for ".node" files: node_modules/@node-rs/jieba-win32-x64-msvc/jieba.win32-x64-msvc.node
Your Environment
Angular CLI: 18.2.9
Node: 20.15.0
Package Manager: yarn 1.22.22
OS: win32 x64
Angular: 18.2.8
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Package Version
@angular-devkit/architect 0.1802.9
@angular-devkit/build-angular 18.2.9
@angular-devkit/core 18.2.9
@angular-devkit/schematics 18.2.9
@angular/cdk 18.2.9
@angular/cli 18.2.9
@angular/material 18.2.9
@schematics/angular 18.2.9
ng-packagr 18.2.1
rxjs 7.8.1
typescript 5.4.5
webpack 5.90.3
zone.js 0.14.10
Anything else relevant?
using the latest version of @node-rs/[email protected] which sounds like it made the switch to WASM, which forces install and not suitable alternative
> yarn add @node-rs/jieba-wasm32-wasi --ignore-platform
as it uses cpu=wasm32I now get a different error about loading that, which maybe is related to #25102 and require futher code change/re-org which I'm not sure is feasible. having
.node
support like webpack would make life SO much easier like webpack did out of the box ?The text was updated successfully, but these errors were encountered: