-
Notifications
You must be signed in to change notification settings - Fork 611
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
Using with Angular - multiple frustrations #548
Comments
Problem is in the resumable.d.ts, almost the last line: have a look at the latest version: https://github.com/23/resumable.js/blob/master/resumable.d.ts 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" |
you can use require like |
i came across this this posting yesterday while upgrading my angularjs project to angular 8 and had the same issue. i ended up saving a ‘resumable.min.js’ inside of my assets folder and injecting it into the component via javascript..
additionally you'll need to declare the var in a new resumable-js.d.ts in your app folder: best regards! |
I am upgrading a legacy app from AngularJS to Angular; this uses resumablejs.
I have spent a lot of time trying to get it working, but as of yet I have been unable to find a 100% satisfactory solution.
I am hoping someone could help, otherwise I will have to look at a much bigger task of finding and using an alternative.
-- Module '"resumablejs"' has no exported member 'Resumable'.
-- This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
I read loads of issues, conversations and pull request comments, talking about this, some even suggesting fixes have been written and PRs merged, but... npm is only updated to v1.1.0 and one post suggests that v.1.1.2 is what is required. So why is npm not being kept up to date?
So I tried DL, the latest code based from the master branch and this doesn't work either. I am told resumablejs is not a module.
I then found what looks like a fork of resumablejs, under @seafile/resumablejs on npm, this appears to have updated up to 1.1.15, but after removing all old versions and installing both v1.1.2 & v1.1.15, neither of those worked. Same issue complaining about not being a module.
What is most frustrating is that I got the damn thing working using a simple require(), but it won't build to production.
I have both these items in my tsconfig:
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
I have tried everything I can find that is documented.
So if nothing else, can someone please just tell me if they have successfully used this library with Angular 6 or similar?
If you are able to provide any help on implementing it, that would be great.
If not, can anyone recommend alternatives, that could be used with Angular ?
The text was updated successfully, but these errors were encountered: