## Current Behavior The `@nx/angular:convert-to-rspack` relies on `require.resolve` to check if entries listed in the `polyfills` array is an npm package. However, in some circumstances such as generating a new app, `zone.js` is not yet installed and therefore require.resolve will not resolve the package. ## Expected Behavior Ensure that `zone.js` is special cased as it is a polyfill that is always needed to be treated as a package. This is also the only polyfill that is set during generation of an app and therefore is the only package that should run into this issue.
{{links}}
Nx: Smart Monorepos · Fast CI
Nx is a build system, optimized for monorepos, with plugins for popular frameworks and tools and advanced CI capabilities including caching and distribution.
This package is an Angular plugin for Nx.
{{content}}