Closed projectX21 closed 4 years ago
I want to inlcude this polyfill in my Angular CLI project.
These steps I have done yet:
npm install seamless-scroll-polyfill --save
And in the src/polyfills.ts:
import { polyfill } from "seamless-scroll-polyfill"; polyfill();
But I get the following error:
ERROR in src/polyfills.ts:67:1 - error TS2554: Expected 1 arguments, but got 0. 67 polyfill(); ~~~~~~~~~~ node_modules/seamless-scroll-polyfill/dist/esm/index.d.ts:2:33 2 export declare const polyfill: (options: IAnimationOptions) => void; ~~~~~~~~~~~~~~~~~~~~~~~~~~ An argument for 'options' was not provided.
I want to inlcude this polyfill in my Angular CLI project.
These steps I have done yet:
npm install seamless-scroll-polyfill --save
And in the src/polyfills.ts:
But I get the following error: