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

Cannot determine asset for chunk scripts, computed="undefined", #156

Closed
joeldhenry opened this issue Mar 14, 2021 · 1 comment
Closed

Cannot determine asset for chunk scripts, computed="undefined", #156

joeldhenry opened this issue Mar 14, 2021 · 1 comment

Comments

@joeldhenry
Copy link

joeldhenry commented Mar 14, 2021

got this strange error when building production. It doesn't seem to affect the bundle:

WARNING in webpack-subresource-integrity: Cannot determine asset for chunk scripts, computed="undefined", available=scripts.b5c2d8b3eae87c23aff3.js. Please report this full error message along with your Webpack configuration at https://github.com/waysact/webpack-subresource-integrity/issues/new

{
    "build": {
        "builder": "@angular-devkit/build-angular:browser",
        "options": {
            "preserveSymlinks": true,
            "outputPath": "dist",
            "index": "projects/project/src/index.html",
            "main": "projects/project/src/main.ts",
            "polyfills": "projects/project/src/polyfills.ts",
            "tsConfig": "projects/project/tsconfig.app.json",
            "aot": true,
            "assets": [
                "projects/project/src/favicon.ico",
                "projects/project/src/assets",
            ],
            "styles": [
                "projects/project/src/styles.less",
            ],
             "scripts": [
            "projects/project/src/ie.js"
            ]
        },
        "configurations": {
            "prod": {
                "optimization": true,
                "outputHashing": "all",
                "sourceMap": false,
                "extractCss": true,
                "namedChunks": false,
                "extractLicenses": true,
                "vendorChunk": false,
                "buildOptimizer": false,
                "subresourceIntegrity": true,
                "budgets": [
                    {
                        "type": "initial",
                        "maximumWarning": "2mb",
                        "maximumError": "5mb"
                    },
                    {
                        "type": "anyComponentStyle",
                        "maximumWarning": "6kb",
                        "maximumError": "10kb"
                    }
                ]
            }
        }
    }
}
        "webpack": "4.44.1",
        "webpack-dev-middleware": "3.7.2",
        "webpack-dev-server": "3.11.0",
        "webpack-merge": "4.2.2",
        "webpack-sources": "1.4.3",
        "webpack-subresource-integrity": "1.4.1",
@jscheid
Copy link
Collaborator

jscheid commented Mar 14, 2021

Are you running angular-cli < 11.2? Upgrading to latest should fix it: #141 (comment)

@jscheid jscheid closed this as completed Mar 18, 2021
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