We are using Asp.net Zero V 15.4.0 with.NET Core and Angular.
We are trying to run the Angular application using pnpm. We executed the following commands from the Angular project directory:
pnpm install pnpm approve-builds pnpm start
However, the Angular application fails to start and displays the error shown in the attached screenshot.
Our environment is:
Node.js: v26.5.0 pnpm: 11.15.1
We also tried deleting the node_modules and .angular folders and reinstalling the packages, but the issue still occurs.
Could you please confirm the correct steps for installing the dependencies and running the Angular application with pnpm in ASP.NET Zero v15.4?
Please also let us know whether any specific pnpm configuration, dependency version, or build command is required.
Thank you.
4 Answer(s)
-
0
@ oguzhanagir,
any update?
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
In v15.4.0 angular/package.json pins
"packageManager": "[email protected]", but angular/.npmrc still carriesshamefully-hoist=true. pnpm 11 no longer reads non auth settings from .npmrc, they must live inpnpm-workspace.yaml. So hoisting is silently disabled, and becauseangular/angular.jsonsets"preserveSymlinks": true, esbuild can no longer resolve quill's own dependencies (quill-delta, parchment).Fix create angular/pnpm-workspace.yaml:
shamefullyHoist: true fetchTimeout: 600000If the file already exists (pnpm approve-builds creates it in pnpm 11 to store allowBuilds), just add the
shamefullyHoist: trueline to it.Then reinstall and run:
cd angular rm -rf node_modules .angular pnpm install pnpm approve-builds pnpm startAlternative if you prefer pnpm's isolated layout: leave .npmrc alone and set
"preserveSymlinks": falseinangular/angular.json(projects → abp-zero-template → architect → build → options). We verified both approaches build the v15.4.0 app successfully.Thank you for your feedback. If the issue persists, please do not hesitate to contact us.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
I followed the suggested steps exactly: Then I ran:
cd angular rmdir /s /q node_modules rmdir /s /q .angular pnpm install pnpm approve-builds pnpm start
During pnpm approve-builds, I selected and approved all the listed packages. However, I am still facing the same issue and the Angular application is not running successfully.
I have attached screenshots for reference. Please let me know what additional configuration or troubleshooting steps are required.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
We've implemented a fix pull request here. We expect your problem to be resolved when you clean up the package related environment in the Angular runtime (package-lock.yaml, node_modules) and apply the changes made with Angular in the pull request.
Also, make sure your global pnpm package is up to date. Relevant documentation.
Please contact us if the problem persists.
Thank you
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)


