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

Cannot find name 'Tiff'. Did you mean 'tiff' #59

Open
rekha-emids opened this issue Nov 25, 2020 · 1 comment
Open

Cannot find name 'Tiff'. Did you mean 'tiff' #59

rekha-emids opened this issue Nov 25, 2020 · 1 comment

Comments

@rekha-emids
Copy link

rekha-emids commented Nov 25, 2020

i added the tiff.min.js using React Hooks. But when i tried to access Tiff module it's throwing "Cannot find name 'Tiff'. Did you mean 'tiff'" error.

const script = document.createElement('script');

    script.src = "https://cdn.rawgit.com/seikichi/tiff.js/master/tiff.min.js";
    script.async = true;

    script.onload = () => scriptLoaded();
  
    document.body.appendChild(script);

var tiff = new Tiff({buffer: event.args.value}); // parse and convert
| ^
121 | var canvas = tiff.toCanvas();

@RamanRajpoot
Copy link

do not use this library.. It has memory leak issues. will consume your whole server memory when you put your application to prod.

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

No branches or pull requests

2 participants