Skip to content

not working in pure js code #104

@mokhtasatxyz

Description

@mokhtasatxyz

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

`<script src="jquery-3.2.1.min.js"> </script>

<script src="https://unpkg.com/merge-images"></script>

<script> import mergeImages from 'merge-images'; mergeImages(['/body.png', '/eyes.png', '/mouth.png']) .then(b64 => document.querySelector('img').src = b64); // data:image/png;base64,iVBORw0KGgoAA... </script> `

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions