Closed 719media closed 4 years ago
Importing the library imports an empty object:
//imports empty object import seamlessScrollPolyfill from 'seamless-scroll-polyfill'; //undefined import { elementScrollIntoView } from 'seamless-scroll-polyfill';
I can get the library to work by importing via script (https://github.com/magic-akari/seamless-scroll-polyfill#import-via-script), but not using import
Also the example at (https://github.com/magic-akari/seamless-scroll-polyfill#use-specific-polyfill) doesn't work either.
Issue repro: https://codesandbox.io/s/sparkling-haze-7o175
Thank you!
Importing the library imports an empty object:
I can get the library to work by importing via script (https://github.com/magic-akari/seamless-scroll-polyfill#import-via-script), but not using import
Also the example at (https://github.com/magic-akari/seamless-scroll-polyfill#use-specific-polyfill) doesn't work either.
Issue repro: https://codesandbox.io/s/sparkling-haze-7o175