最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

vite - Angular 19: TypeError: ɵgetOrCreateAngularServerApp is not a function - Stack Overflow

programmeradmin1浏览0评论

I'm currently working on an Angular 19 project and encountered the following error in my terminal when running the application:

TypeError: ɵgetOrCreateAngularServerApp is not a function
    at _AngularAppEngine.eval (D:\Programming\Projects\development\angular19\crud-exercise\.angular\cache\19.2.3\crud-exercise\vite\deps_ssr\chunk-DFJULMVP.js:11513:25)
    at Generator.next (<anonymous>)

I already tried removing my node_modules and package-lock.json, then reinstalling them, but I still encounter this error.

rm -rf node_modules package-lock.json
npm install
ng cache clean

Questions:

  1. What causes the ɵgetOrCreateAngularServerApp is not a function error?
  2. How can I resolve this issue when running Angular 19 with Vite and SSR?
发布评论

评论列表(0)

  1. 暂无评论