Open Yberion opened 2 months ago
Hello,
Reading the log when serving an rspack application, it seems that Content not from webpack is served from folder is incorrect.
Content not from webpack is served from
It is saying E:\Git\nx-rspack-angular\public when it should be E:\Git\nx-rspack-angular\apps\rspack-angular\public.
E:\Git\nx-rspack-angular\public
E:\Git\nx-rspack-angular\apps\rspack-angular\public
... <i> [webpack-dev-server] Content not from webpack is served from 'E:\Git\nx-rspack-angular\public' directory ...
https://github.com/Yberion/nx-rspack-angular/tree/feat/rspack-app
You will face the errors from https://github.com/Coly010/ng-rspack-build/issues/9 & https://github.com/Coly010/ng-rspack-build/issues/10 but you will be able to see the logs when trying to serve the app.
corepack enable
corepack prepare pnpm@latest --activate
pnpm install --no-frozen-lockfile
pnpm exec nx run rspack-angular:serve --configuration=development
Angular CLI: 18.2.6 Node: 20.17.0 Package Manager: pnpm 9.11.0 OS: win32 x64 Angular: 18.2.6 ... animations, build, cdk, cli, common, compiler, compiler-cli ... core, forms, language-service, material, platform-browser ... platform-browser-dynamic, router Package Version --------------------------------------------------------- @angular-devkit/architect 0.1802.6 @angular-devkit/build-angular 18.2.6 @angular-devkit/core 18.2.6 @angular-devkit/schematics 18.2.6 @schematics/angular 18.2.6 ng-packagr 18.2.1 rxjs 7.8.1 typescript 5.5.4
Thanks for raising!!
Hello,
Reading the log when serving an rspack application, it seems that
Content not from webpack is served from
folder is incorrect.It is saying
E:\Git\nx-rspack-angular\public
when it should beE:\Git\nx-rspack-angular\apps\rspack-angular\public
.Reproduction
https://github.com/Yberion/nx-rspack-angular/tree/feat/rspack-app
You will face the errors from https://github.com/Coly010/ng-rspack-build/issues/9 & https://github.com/Coly010/ng-rspack-build/issues/10 but you will be able to see the logs when trying to serve the app.
corepack enable
corepack prepare pnpm@latest --activate
pnpm install --no-frozen-lockfile
pnpm exec nx run rspack-angular:serve --configuration=development
Env