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 use this library #103

Open
DavideVito opened this issue Nov 18, 2020 · 1 comment
Open

Cannot use this library #103

DavideVito opened this issue Nov 18, 2020 · 1 comment

Comments

@DavideVito
Copy link

Hi,

I'd like to user this code inside my react app, i've downloaded the library using npm (npm install --save wasm-imagemagick) as stated in the guide, then i've copied the file from node_modules to the public folder, as stated in the guide.

But when i start the application i get this error: Uncaught SyntaxError: Cannot use import statement outside a module
image im using snowpack, then i've tried to clone the example code you have hosted on codesandbox, but still, when installing the components and run the app, i get this error,
image

How can i solve?

@misaelbr
Copy link

I'm having the same problem.

Alternatively, I used the @xn-sakina/image-magick package, which is practically a handler for this one, but the typings are all set to 'any'.

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