mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-19 20:52:06 +08:00
Replacing the paths to ESM in Vite can cause prebundling to fail in some cases, resulting in errors similar to the following: ``` 12:55:12 PM [vite] Error when evaluating SSR module /chunk-CHB4JJIP.mjs: |- TypeError: Cannot read properties of undefined (reading 'Subject') at eval (//src/app/shared/snackbar/snackbar.service.ts:2:25) at async instantiateModule (file:////node_modules/vite/dist/node/chunks/dep-BcXSligG.js:53408:5) 12:55:12 PM [vite] Error when evaluating SSR module /chunk-GQZ5BKXC.mjs: |- TypeError: Cannot read properties of undefined (reading 'Subject') at eval (//src/app/shared/snackbar/snackbar.service.ts:2:25) at async instantiateModule (file:////node_modules/vite/dist/node/chunks/dep-BcXSligG.js:53408:5) ``` Closes: #27907