It seems angular-scrollspy still use ViewEngine library.
In latest angular and modern angular versions, they drop ViewEngine library build and recommend to use ivy compile library pattern.
It is easy to update.
Just put enableIvy in tsconfig.json
I can make PR for this updates. Please consider it.