Skip to content

[error] HookWebpackError: The service is no longer running #22338

@TheLillyleaf

Description

@TheLillyleaf

🐞 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?

Not sure, First time trying build.

Description

When I try to run ng build, I get:
an An unhandled exception occurred: The service is no longer running

🔬 Minimal Reproduction

ng new my-courses-lab3-studentid --minimal=true --skip-tests=true --inline-style=false --inline-template=false --strict=true --style=css --routing=true

ng build

🔥 Exception or Error


[error] HookWebpackError: The service is no longer running
    at makeWebpackError (/home/tobiasliljeblad/Documents/programvaruteknik/webb2/coding/DT190G/laboration_3/my-courses-lab3-toli2003/node_modules/webpack/lib/HookWebpackError.js:48:9)
    at /home/tobiasliljeblad/Documents/programvaruteknik/webb2/coding/DT190G/laboration_3/my-courses-lab3-toli2003/node_modules/webpack/lib/Compilation.js:3055:12
    at eval (eval at create (/home/tobiasliljeblad/Documents/programvaruteknik/webb2/coding/DT190G/laboration_3/my-courses-lab3-toli2003/node_modules/tapable/lib/HookCodeFactory.js:33:10), :98:1)
-- inner error --
Error: The service is no longer running
    at /home/tobiasliljeblad/Documents/programvaruteknik/webb2/coding/DT190G/laboration_3/my-courses-lab3-toli2003/node_modules/esbuild-wasm/lib/main.js:1276:29
    at sendRequest (/home/tobiasliljeblad/Documents/programvaruteknik/webb2/coding/DT190G/laboration_3/my-courses-lab3-toli2003/node_modules/esbuild-wasm/lib/main.js:625:14)
    at start (/home/tobiasliljeblad/Documents/programvaruteknik/webb2/coding/DT190G/laboration_3/my-courses-lab3-toli2003/node_modules/esbuild-wasm/lib/main.js:1274:9)
    at Object.transform2 [as transform] (/home/tobiasliljeblad/Documents/programvaruteknik/webb2/coding/DT190G/laboration_3/my-courses-lab3-toli2003/node_modules/esbuild-wasm/lib/main.js:1324:5)
    at /home/tobiasliljeblad/Documents/programvaruteknik/webb2/coding/DT190G/laboration_3/my-courses-lab3-toli2003/node_modules/esbuild-wasm/lib/main.js:1920:55
    at new Promise ()
    at Object.transform (/home/tobiasliljeblad/Documents/programvaruteknik/webb2/coding/DT190G/laboration_3/my-courses-lab3-toli2003/node_modules/esbuild-wasm/lib/main.js:1920:14)
    at EsbuildExecutor.transform [as esbuildTransform] (/home/tobiasliljeblad/Documents/programvaruteknik/webb2/coding/DT190G/laboration_3/my-courses-lab3-toli2003/node_modules/esbuild-wasm/lib/main.js:1751:62)
    at EsbuildExecutor.transform (/home/tobiasliljeblad/Documents/programvaruteknik/webb2/coding/DT190G/laboration_3/my-courses-lab3-toli2003/node_modules/@angular-devkit/build-angular/src/webpack/plugins/esbuild-executor.js:119:21)
    at async /home/tobiasliljeblad/Documents/programvaruteknik/webb2/coding/DT190G/laboration_3/my-courses-lab3-toli2003/node_modules/@angular-devkit/build-angular/src/webpack/plugins/css-optimizer-plugin.js:63:53



🌍 Your Environment



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

Angular CLI: 13.1.0
Node: 16.13.1
Package Manager: npm 
OS: linux x64

Angular: 13.1.0
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1301.0
@angular-devkit/build-angular   13.1.0
@angular-devkit/core            13.1.0
@angular-devkit/schematics      13.1.0
@schematics/angular             13.1.0
rxjs                            7.4.0
typescript                      4.4.4

Anything else relevant?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions