OHIF / react-vtkjs-viewport

VTK.js image viewport component in React
https://react-vtkjs-viewport.netlify.com/
MIT License
144 stars 82 forks source link

Unable to run #181

Open DavidMGT opened 10 months ago

DavidMGT commented 10 months ago

here is the err when I do "yarn run dev"

 10% building 1/1 modules 0 activeℹ 「wds」: Project is running at http://localhost:3000/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /Users/hanglok/work/Vtk/sample/react-vtkjs-viewport-master
ℹ 「wds」: 404s will fallback to /index.html
 10% building 1/3 modules 2 active ...r/client/index.js?http://localhost:3000Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:69:19)
    at Object.createHash (node:crypto:138:10)
    at module.exports (/Users/hanglok/work/Vtk/sample/react-vtkjs-viewport-master/node_modules/webpack/lib/util/createHash.js:90:53)
    at NormalModule._initBuildHash (/Users/hanglok/work/Vtk/sample/react-vtkjs-viewport-master/node_modules/webpack/lib/NormalModule.js:401:16)
    at handleParseError (/Users/hanglok/work/Vtk/sample/react-vtkjs-viewport-master/node_modules/webpack/lib/NormalModule.js:452:10)
    at /Users/hanglok/work/Vtk/sample/react-vtkjs-viewport-master/node_modules/webpack/lib/NormalModule.js:484:5
    at /Users/hanglok/work/Vtk/sample/react-vtkjs-viewport-master/node_modules/webpack/lib/NormalModule.js:343:12
    at /Users/hanglok/work/Vtk/sample/react-vtkjs-viewport-master/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/Users/hanglok/work/Vtk/sample/react-vtkjs-viewport-master/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at iterateNormalLoaders (/Users/hanglok/work/Vtk/sample/react-vtkjs-viewport-master/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
    at /Users/hanglok/work/Vtk/sample/react-vtkjs-viewport-master/node_modules/loader-runner/lib/LoaderRunner.js:236:3
    at runSyncOrAsync (/Users/hanglok/work/Vtk/sample/react-vtkjs-viewport-master/node_modules/loader-runner/lib/LoaderRunner.js:130:11)
    at iterateNormalLoaders (/Users/hanglok/work/Vtk/sample/react-vtkjs-viewport-master/node_modules/loader-runner/lib/LoaderRunner.js:232:2)
    at Array.<anonymous> (/Users/hanglok/work/Vtk/sample/react-vtkjs-viewport-master/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
    at Storage.finished (/Users/hanglok/work/Vtk/sample/react-vtkjs-viewport-master/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
    at /Users/hanglok/work/Vtk/sample/react-vtkjs-viewport-master/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
node:internal/crypto/hash:69
  this[kHandle] = new _Hash(algorithm, xofLen);
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:69:19)
    at Object.createHash (node:crypto:138:10)
    at module.exports (/Users/hanglok/work/Vtk/sample/react-vtkjs-viewport-master/node_modules/webpack/lib/util/createHash.js:90:53)
    at NormalModule._initBuildHash (/Users/hanglok/work/Vtk/sample/react-vtkjs-viewport-master/node_modules/webpack/lib/NormalModule.js:401:16)
    at handleParseError (/Users/hanglok/work/Vtk/sample/react-vtkjs-viewport-master/node_modules/webpack/lib/NormalModule.js:452:10)
    at /Users/hanglok/work/Vtk/sample/react-vtkjs-viewport-master/node_modules/webpack/lib/NormalModule.js:484:5
    at /Users/hanglok/work/Vtk/sample/react-vtkjs-viewport-master/node_modules/webpack/lib/NormalModule.js:343:12
    at /Users/hanglok/work/Vtk/sample/react-vtkjs-viewport-master/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/Users/hanglok/work/Vtk/sample/react-vtkjs-viewport-master/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at Array.<anonymous> (/Users/hanglok/work/Vtk/sample/react-vtkjs-viewport-master/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
    at Storage.finished (/Users/hanglok/work/Vtk/sample/react-vtkjs-viewport-master/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
    at /Users/hanglok/work/Vtk/sample/react-vtkjs-viewport-master/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
    at /Users/hanglok/work/Vtk/sample/react-vtkjs-viewport-master/node_modules/graceful-fs/graceful-fs.js:115:16
    at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read/context:68:3) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}