@ng-toolkit/universal ERROR: Cannot read property ‘unshift’ of undefined

최대 1 분 소요

Let’s investigate the @ng-toolkit/universal ERROR: Cannot read property 'unshift' of undefined error.

To utilize the window object within an Angular Universal application, the @ng-toolkit/universal package is typically installed.

ng add @ng-toolkit/universal

However, when attempting installation with Angular 8, an unshift error may occur.

@ng-toolkit/universal ERROR: Cannot read property 'unshift' of undefined

Investigation suggests that this issue stems from a version incompatibility.

The ng add command might install version 1.1.21 of @ng-toolkit/universal. This version is outdated. Upgrading to the latest version, 7.1.2, resolves the aforementioned error.

Reference

댓글남기기