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
TypeError: FileUploadWithPreview is not a constructor #19
Comments
Because of some recent changes that we’re working through, you’re going to want to make sure you’re including the library at a certain version. To anyone coming to this issue with a new Initial answer:Hey, sorry about that - we made some changes today that affect the usage. You can either update your code to use .default on the initialization: |
Thanks, it works 😄 |
Hey Grzegorz - we just pushed a fix to the If you do run into an issue now, please use the following import code to lock in your version: <script src="https://unpkg.com/file-upload-with-preview@3.2.8/dist/file-upload-with-preview.min.js"></script> Also, you can remove the var upload = new FileUploadWithPreview('myUniqueUploadId') Sorry for the trouble and for you having to update your code. Please let us know if we can assist further. Thank you. |
Hello, I'm having the same problem importing from NPM into a JS file. File plugins.js using webpack:
When I see in the browser, the error appears: Uncaught TypeError: FileUploadWithPreview is not a constructor My script into HTML
|
on app.js |
I had this script on my site, and now it stop working...
Error i have is "TypeError: FileUploadWithPreview is not a constructor"
Can You help it?
The text was updated successfully, but these errors were encountered: