Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

npm run prerender does not create the ngsw-worker.js, ngsw.json files  #1505

@EdwinFdoGarcia

Description

@EdwinFdoGarcia

🐞 Bug report

What modules are related to this issue?

  • aspnetcore-engine
  • builders
  • common
  • express-engine
  • hapi-engine
  • module-map-ngfactory-loader

Is this a regression?

I don't know, possibly but before I used universal angular with module-map-ngfactory-loader and exported the files that I mentioned.

Description

npm run prerender does not create the ngsw-worker.js, ngsw.json files.
create the application but only these two ngsw-worker.js, ngsw.json files would be missing.

🔬 Minimal Reproduction

npm run prerender

Hash: ef705016a62ee6d8132b
Time: 26852ms
Built at: 13/02/2020 12:02:42
  Asset      Size  Chunks                    Chunk Names
main.js  2.85 MiB       0  [emitted]  [big]  main
Entrypoint main [big] = main.js
chunk    {0} main.js (main) 5.85 MiB [entry] [rendered]
Generating ES5 bundles for differential loading...
ES5 bundle generation complete.

chunk {3} polyfills-es5.6e2f468dea03dd10e7eb.js, polyfills-es5.6e2f468dea03dd10e7eb.js.map (polyfills-es5) 127 kB [initial] [rendered]
chunk {2} polyfills-es2015.db39b23daa8851ccf344.js, polyfills-es2015.db39b23daa8851ccf344.js.map (polyfills) 35.7 kB [initial] [rendered]
chunk {1} main-es2015.dc112d754bfac23b83ec.js, main-es2015.dc112d754bfac23b83ec.js.map (main) 27.2 kB [initial] [rendered]
chunk {1} main-es5.dc112d754bfac23b83ec.js, main-es5.dc112d754bfac23b83ec.js.map (main) 27.3 kB [initial] [rendered]
chunk {0} runtime-es2015.0811dcefd377500b5b1a.js, runtime-es2015.0811dcefd377500b5b1a.js.map (runtime) 1.51 kB [entry] [rendered]
chunk {0} runtime-es5.0811dcefd377500b5b1a.js, runtime-es5.0811dcefd377500b5b1a.js.map (runtime) 1.51 kB [entry] [rendered]
chunk {5} vendor-es2015.e73c2103cca588ed7f1a.js, vendor-es2015.e73c2103cca588ed7f1a.js.map (vendor) 227 kB [initial] [rendered]
chunk {5} vendor-es5.e73c2103cca588ed7f1a.js, vendor-es5.e73c2103cca588ed7f1a.js.map (vendor) 276 kB [initial] [rendered]
chunk {4} styles.68693795d6011f90ac29.css, styles.68693795d6011f90ac29.css.map (styles) 0 bytes [initial] [rendered]
Date: 2020-02-13T17:02:44.110Z - Hash: 65d4add55f562df7782d - Time: 29964ms
Prerendering 1 route(s) to /Users/edwingarcia/Desktop/Angular-Universal/AppSemillasV2/dist/AppSemillasV2/browser
CREATE /Users/edwingarcia/Desktop/Angular-Universal/AppSemillasV2/dist/AppSemillasV2/browser/index.html (27901 bytes)

Captura de Pantalla 2020-02-13 a la(s) 11 59 59 a  m

GitHub repository with the reproduction of the issue:

https://github.com/EdwinFdoGarcia/npm-run-prerender-does-not-create-the-ngsw-worker.js-ngsw.json-files

Issues that don't have enough info and can't be reproduced will be closed.

🌍 Your Environment




Angular CLI: 9.0.1
Node: 10.18.1
OS: darwin x64

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

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.900.1
@angular-devkit/build-angular     0.900.1
@angular-devkit/build-optimizer   0.900.1
@angular-devkit/build-webpack     0.900.1
@angular-devkit/core              9.0.1
@angular-devkit/schematics        9.0.1
@ngtools/webpack                  9.0.1
@nguniversal/builders             9.0.0
@nguniversal/common               9.0.0
@nguniversal/express-engine       9.0.0
@schematics/angular               9.0.1
@schematics/update                0.900.1
rxjs                              6.5.4
typescript                        3.7.5
webpack                           4.41.2`

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions