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

Warning in webpack-subresource-integrity #19829

Closed
1 of 15 tasks
lukaskurz opened this issue Jan 20, 2021 · 4 comments · Fixed by #19837
Closed
1 of 15 tasks

Warning in webpack-subresource-integrity #19829

lukaskurz opened this issue Jan 20, 2021 · 4 comments · Fixed by #19837

Comments

@lukaskurz
Copy link

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

Yes, the previous version in which this bug was not present was: ....

Nope, don't think so.

Description

When i try to do a build with angular it throws this warning at the end of it:

chunk {} runtime.39e440ffc58a0c5ea137.js (runtime) 2.62 kB [entry] [rendered]
chunk {1} main.f0787a89e56367a0d4ae.js (main) 111 kB [initial] [rendered]
chunk {2} polyfills.45adc7f91fa71ef6f425.js (polyfills) 166 kB [initial] [rendered]
chunk {3} polyfills-es5.834fe503d6f9b3377e74.js (polyfills-es5) 249 kB [initial] [rendered]
chunk {4} styles.3dd4681c5b97bbeabdf5.css (styles) 569 kB [initial] [rendered]
chunk {5} vendor.b4bbba3e16bf4652debe.js (vendor) 1.46 MB [initial] [rendered]
chunk {6} 6.8e8c786becf994378b6c.js () 1.07 MB  [rendered]
chunk {7} 7.6b6ed83ee281f7c77918.js () 34.4 kB  [rendered]
chunk {8} 8.7cf7cb03827a25cd0afb.js () 43.1 kB  [rendered]
chunk {scripts} scripts.0022afdcd9fa76f58a28.js (scripts) 324 kB [entry] [rendered]
Date: 2020-10-29T02:38:20.143Z - Hash: 14cc2dc96fe0ed82f9cc - Time: 52396ms

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

While it seems to have to detrimental effect on the finished build, I would still like to not have a warning in my build process 😅

I've opened an issue over at the waysact/webpack-subresource-integrity:

waysact/webpack-subresource-integrity#133

Where someone took a look at it and referred me to discuss this issue with you folks furthermore.

🔬 Minimal Reproduction

https://github.com/lukaskurz/sri_warning_demo

All you have to do is run make to get the warning.

🔥 Exception or Error


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

🌍 Your Environment


 ng version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 11.0.1
Node: 14.15.0
OS: linux x64

Angular: 
... 
Ivy Workspace: 

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1100.1 (cli-only)
@angular-devkit/core         11.0.1 (cli-only)
@angular-devkit/schematics   11.0.1 (cli-only)
@schematics/angular          11.0.1 (cli-only)
@schematics/update           0.1100.1 (cli-only)

Anything else relevant?

@clydin
Copy link
Member

clydin commented Jan 20, 2021

It appears that the version output shown above is from a global install of the Angular CLI. Could you provide the output of ng version executed from within the project?

@clydin clydin added the needs: more info Reporter must clarify the issue label Jan 20, 2021
@alan-agius4
Copy link
Collaborator

I was able to replicate this even with the latest version of the CLI.

@lukaskurz
Copy link
Author

@clydin Sorry, totally forgot that ng is globally installed. Here is the version of the local install:

npx ng version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 9.0.5
Node: 14.15.0
OS: linux x64

Angular: 9.0.5
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... platform-server, router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.900.5
@angular-devkit/build-angular     0.900.5
@angular-devkit/build-optimizer   0.900.5
@angular-devkit/build-webpack     0.900.5
@angular-devkit/core              9.0.5
@angular-devkit/schematics        9.0.5
@angular/cdk                      9.1.1
@angular/http                     7.2.16
@angular/material                 9.1.1
@ngtools/webpack                  9.0.5
@schematics/angular               9.0.5
@schematics/update                0.900.5
rxjs                              6.5.2
typescript                        3.7.5
webpack                           4.41.2

I think this should be a it.

filipesilva pushed a commit that referenced this issue Jan 25, 2021
…ng subresource-integrity option

Fixes #19829

(cherry picked from commit d0cc0cb)
filipesilva pushed a commit that referenced this issue Jan 25, 2021
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Feb 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants