New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong export in typescript declaration #24
Comments
@senaev How do you use it? With bundler? |
@TrySound yes, we're using webpack bundler. And I noticed that there is no troubles in webpack 3. Error occures in webpack 1. |
I believe that it happens because bundlers like webpack 2+ and Rollup are using ES6 module version of the polyfill, which exports module with the Could you please consider updating your webpack version either to 2.x or 3.x as 1.x is officially deprecated? |
Hi all, I am using webpack: 4.17.0 and latest angular version. I've tried to import this module, but I am getting below error
Does anyone have tried and make it works for anglar with webpack bundler? |
I'm having the same issue and have created a pull request (#52) that fixes it for me. |
in index.d.ts library exports in
default
property, but in ResizeObserver.js it exports as the fullmodule.exports
objectit should be
or
instead of
The text was updated successfully, but these errors were encountered: