[error] HookWebpackError: The service is no longer running
See original GitHub issue🐞 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), <anonymous>: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 (<anonymous>)
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?
Issue Analytics
- State:
- Created 2 years ago
- Comments:11
Top Results From Across the Web
Not supported when copy-webpack-plugin is used on ...
I'm running into an error on Windows 10 whenever I try to run webpack, it works fine on ... [webpack-cli] HookWebpackError: Not supported....
Read more >Webpack HookWebpackError: Missed semicolon - Support
Hi, I'm having an issue when deploying to Netlify although my project works locally. I'm getting the following error in the deploy log....
Read more >Identify and Fix Build and Deployment Errors in Your Angular ...
In this guide, you will learn how to spot some of the most common build and deployment errors and how to resolve them...
Read more >How I solved and debugged my Webpack issue through trial ...
js . This isn't always helpful as you probably want to know exactly which source file the error came from. In order to...
Read more >Angular ng build fails Invalid version 15.2-15.3 - YouTube
How to Run Angular Application with Docker and NGINX HD 1080p ... Github Actions CI/CD - Everything you need to know to get...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@alan-agius4 It worked! Thanks a million!!
Can you try to re-install Node.JS? Tip: you can use NVM to install and manage your Node.Js versions.