lukechilds / merge-images

Easily compose images together without messing around with canvas
MIT License
1.69k stars 163 forks source link

not working in pure js code #104

Open mokhtasatxyz opened 3 years ago

mokhtasatxyz commented 3 years ago

hello

i use this script but not worked for me

i work in pc local and i don't use any server and i use chrome browser

i have error : Uncaught SyntaxError: Cannot use import statement outside a module

`

`

ideathingdev commented 3 years ago

I thought it was me not doing things properly, I was about to go crazy! I have other errors:

index.js:22 Uncaught (in promise) TypeError: Cannot read property 'constructor' of undefined

    at index.js:22
    at new Promise (<anonymous>)
    at index.js:20
    at Array.map (<anonymous>)
    at index.js:20
    at new Promise (<anonymous>)
    at mergeImages (index.js:12)

If I don't use the import module part, please if someone has any insight on this it would be huge help