Can anyone please guide how to use Smooth Scroll Polyfill with Angular 2 CLI.
I tried adding below to polyfills.ts but it throws error on work require
require('smoothscroll-polyfill').polyfill();
I then tried adding
import 'smoothscroll-polyfill';
Though it didn't throw any error during build but when I run the project in browser it show below error on console:
ERROR TypeError: Failed to execute 'scroll' on 'Window': No function was found that matched the signature provided.