OrgChart icon indicating copy to clipboard operation
OrgChart copied to clipboard

cannot install orgchart throught

Open ooo2003003v2 opened this issue 4 years ago • 4 comments

cmd showed the following image

ooo2003003v2 avatar Jun 30 '20 06:06 ooo2003003v2

Same for me.

jspdf could be migrated to the version 2 ?

ben12 avatar Sep 02 '20 09:09 ben12

any update on this issue ? i too have the same issue.

kiru86 avatar Oct 29 '20 11:10 kiru86

Workaround:

Add in package-lock.json:

{
...
  "dependencies": {
    "orgchart": {
      "version": "2.1.10",
      "resolved": "https://registry.npmjs.org/orgchart/-/orgchart-2.1.10.tgz",
      "integrity": "sha512-jgiajUSq07XScAgHPwQeGJKPdDsHfr/ENbKcsEUyCjNOPDmw6XeO7fJ6GMaJ93jxs9P0sJktMUJr+e3gjorZmQ==",
      "requires": {
        "html2canvas": "^1.0.0-rc.5",
        "jquery": "^3.4.1",
        "jquery-mockjax": "^2.5.0",
        "jspdf": "^1.5.3"
      },
      "dependencies": {
        "jspdf": {
          "version": "2.1.1",
          "resolved": "https://registry.npmjs.org/jspdf/-/jspdf-2.1.1.tgz",
          "integrity": "sha512-aEZmTr8SgR7Dy2zjFLu6pbg93urA7nZdbS3MIAXs8PSXn1ee7LSpm0JVMYZ+0qS6ZIUI5NriFSTdpVI4QArAXQ==",
          "requires": {
            "atob": "^2.1.2",
            "btoa": "^1.2.1",
            "canvg": "^3.0.6",
            "core-js": "^3.6.0",
            "dompurify": "^2.0.12",
            "html2canvas": "^1.0.0-rc.5"
          }
        }
      }
    },
...
  }
}

and package.json :

{
  "scripts": {
...
    "preinstall": "npx npm-force-resolutions"
  },
  "dependencies": {
...
    "orgchart": "2.1.10"
  },
...
  "resolutions": {
    "jspdf": "2.1.1"
  }
...

ben12 avatar Oct 29 '20 12:10 ben12

Maybe fixed with 8c5427e74e6dde7b27b75a10fb803b62d6db067a ? (not tested)

ben12 avatar Feb 15 '21 08:02 ben12