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
EE is not a constructor #1222
Comments
I don't think it has something to do with your code. I've been using similar code for 4 weeks and it broke just recently. Jumping back in my commit history back 4 weeks ago makes no difference, the same exception is thrown. Tried downgrading via NPM down to 0.13.1 and also using the current master branch state. Oddly enough the angular2 (angular5) demo works flawlessly. There must be something we're missing.
|
@jakob-fuchs @xama5 can you try rolling back to Angular 5.x? |
woah, thanks for the quick reply @SheetJSDev! As typical, I figured it out just after posting my comment. The issue seems not to be with the angular version, it lies in the wrong import I used: Breaks: Works: This creeped in just before my recent 40 commits, so obviously a typical user/programmer error. @jakob-fuchs has it probably the same |
I'm loading the xlsx.min file form the dist directory with a script tag. I guess that's the correct way? |
In the demo you provided you're not using the full dist. It should be
instead of
Can you verify? |
Yes, I missed that. Thanks for catching that. |
early, i use |
@brickspert Read my reply more carefully. It should be Everything else will not work. |
@xama5 no,i used but, it broke just recently. the error message is i have not change any code , i must change it to so , i don't know why~~ |
@brickspert That's strange. Do you have your code somewhere on GitHub? |
@xama5 no, it's a private project. i think that's so strange ! now i use some days ago, i use are you chinese?? |
@brickspert Hmm, I'd suggest to delete the node_modules directory and install everything again. But without code I'm unable to help. If you don't want to share your code, then I suggest you create a demo where the issue is reproduced. Also check out these demos and see if your code is the same: https://github.com/SheetJS/js-xlsx/tree/master/demos You can also try going a version back of this package. If only the most recent version breaks, kindly create a new issue. And no, unfortunately I'm not Chinese. :) |
@brickspert it work for me to. I think because of routes includes lazy component. |
I'm following this tutorial here: https://redstapler.co/sheetjs-tutorial-convert-excel-html-table/
The error message I get is:
Uncaught TypeError: Ee is not a constructor
My code is here: https://kind-knuth-cf9a2f.netlify.com/ https://kind-knuth-cf9a2f.netlify.com/index.js
Since I don't know much about this library I don't have any clue why that is happening. I'd appreciate any help.
The text was updated successfully, but these errors were encountered: