Skip to content
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

esModuleInterop error when using Typescript #547

Open
junalmeida opened this issue Nov 18, 2019 · 5 comments · May be fixed by #597
Open

esModuleInterop error when using Typescript #547

junalmeida opened this issue Nov 18, 2019 · 5 comments · May be fixed by #597

Comments

@junalmeida
Copy link

This is the exception I am facing when using typescript:

This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.ts(2497)
@junalmeida
Copy link
Author

Update: This might be already solved on version 1.1.2 however this version is not yet available on npm.

@RobDaPraia
Copy link

Problem is in the resumable.d.ts, almost the last line:
export = Resumable.Resumable;

have a look at the latest version: https://github.com/23/resumable.js/blob/master/resumable.d.ts
export = Resumable;

You can update the file under \node_modules\resumablejs\resumable.d.ts

But probably this manual change will be overwritten when doing a "npm install"

@junalmeida
Copy link
Author

junalmeida commented Dec 20, 2019

@RobDaPraia yes, this means changing that file manually is not an option.

@bjoveski
Copy link

bjoveski commented Jun 1, 2020

Hey folks,

Thank you for developing Resumable, it's very well designed & documented and a pleasure to use.

Would you mind pushing the latest version (1.1.2) to the npm registry?

Thank you,
Bojan

@asmanp2012
Copy link

@asmanp2012 asmanp2012 linked a pull request Oct 18, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants