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

Error: dom-to-image is required since 0.7.2 #529

Closed
ScorprocS opened this issue Nov 5, 2023 · 1 comment
Closed

Error: dom-to-image is required since 0.7.2 #529

ScorprocS opened this issue Nov 5, 2023 · 1 comment

Comments

@ScorprocS
Copy link

ScorprocS commented Nov 5, 2023

Hello I'm using jsmind in an angular application. It was working well utill 0.7.2 version.

I'have this issue in the console

node_modules\jsmind\es6\jsmind.screenshot.js:8 Uncaught Error: dom-to-image is required
    at node_modules\jsmind\es6\jsmind.screenshot.js:8:444
    at node_modules\jsmind\es6\jsmind.screenshot.js:8:16
    at node_modules\jsmind\es6\jsmind.screenshot.js:8:265

So I have tried to import it in the project
npm i dom-to-image
and I've added the script in angular.json

   "scripts": [
              "./node_modules/jsmind/es6/jsmind.js",
              "./node_modules/jsmind/es6/jsmind.draggable-node.js",
              "./node_modules/jsmind/es6/jsmind.screenshot.js",
              "./node_modules/dom-to-image/dist/dom-to-image.min.js"
            ],
            

But I still have the issue. Do you have any idea how to solve this ? Thanks

@ScorprocS
Copy link
Author

ScorprocS commented Nov 5, 2023

My bad I just had to insert "./node_modules/dom-to-image/dist/dom-to-image.min.js" on the first position in the script array.
It's working now

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

1 participant