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

Failed to load index.worker.min.worker.js #479

Open
HamzaPooki opened this issue Nov 1, 2022 · 2 comments
Open

Failed to load index.worker.min.worker.js #479

HamzaPooki opened this issue Nov 1, 2022 · 2 comments

Comments

@HamzaPooki
Copy link

Hello. We are trying to load DICOM image using Cornerstone and cornerstoneWADOImageLoader in Angular. But it is giving me this error
Screenshot 2022-11-01 at 2 11 07 PM
Please help me as soon as possible.

@NikGurev
Copy link
Contributor

Hello @HamzaPooki!
This approach helped me:
Depending on your angular version, add this script to output bundle inside angular.json file

"architect": {
        "build": {
          "builder": "@angular-builders/custom-webpack:browser",
          "options": {
            .....
               "scripts": [
                   {
                     "input": "node_modules/cornerstone-wado-image-loader/dist/index.worker.bundle.min.worker.js",
                     "inject": true,
                     "bundleName": "index.worker.bundle.min.worker"
                    },
            ]

@NikGurev
Copy link
Contributor

@HamzaPooki please, try latest 4.10.2 version

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

2 participants