-
Notifications
You must be signed in to change notification settings - Fork 506
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
Uncaught ReferenceError: zip is not defined #202
Comments
problem solved or not I have same issue |
@atharuddin786 This issue is obsolete ( |
Actually I am using cdn for importing zip.js in my project |
Your issue is solved or not |
Can you help?? |
I confirm the issue is obsolete and fixed for more than 2 years now. I also confirm that importing zip.js from a CDN works, see https://jsfiddle.net/dns7pkxt/. This example is taken from the The code in your screenshot is almost the same as https://github.com/gildas-lormeau/zip.js/blob/gh-pages/demos/demo-read-file.js#L82-L94 which works well, see https://gildas-lormeau.github.io/zip.js/demos/demo-read-file.html. Unfortunately, your screenshot does not include the import so I won't be able to tell you what could be wrong on your end. |
Uploading VID20220903233209.mp4… |
Can I share code with you |
Indeed, if you want help, you have to show some code. These screenshots tell me absolutely nothing, I don't even know what it is. I'm not the author of this web application (https://extract.me/ ?). |
So, I confirm https://extract.me/ does not work. You should use the link "Contact us" at the bottom of the page to contact the developers of this web application. |
I have to make like this website https://extract.me/ For practice purpose |
I guess the simplest way to fix your problem is to add this tag in your page: <script src="https://unpkg.com/@zip.js/zip.js/dist/zip.js"></script> |
By the way, if you happen to copy code (like the one in the zip.js demo), don't forget to credit the author of the code. |
Can I share code you on telegram or any other platform |
I'm sorry, I don't use telegram. You can send me a direct message on twitter if you want. |
var dots = document.getElementById("dots"); more.style.display = "none"; function otherformates() { /* js*/ const model = (() => {
})(); (() => {
})(); |
You can check I have made diffrent Loadfile function |
If you don't want to add the import * as zip from "https://unpkg.com/@zip.js/zip.js/index.js"; |
I have add that script tag in html page |
same error is coming |
It should work. Here's an example: <script src="https://unpkg.com/@zip.js/zip.js/dist/zip.js"></script>
<script>
console.log(zip);
</script> It displays the content of the |
File reading is working perfectly |
Great! |
plz help what I have used to loadFiles |
You copied my code and broke it. I'm sorry but I won't fix the bugs you introduced... The function |
actually I have looking zip.js or treejs for zip file reader then your library is comming out in google search |
plz help me bro |
got frustrated with this error |
I already answered you! Replace |
loadFiles(new zip.ZipReader(new zip.BlobReader(file)) |
And this article as well: http://testthewebforward.org/docs/bugs.html. Thanks! |
Hello, i have experienced issue whe import module zip-ext.js at the very beginning in fourth row :
var Reader = zip.Reader;
the error is:
Uncaught ReferenceError: zip is not defined in Chrome.
i import js in this order:
zip, zip-ext
Can someone help me?
The text was updated successfully, but these errors were encountered: