Prerequisites
Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
- What is your product version? 11.1
- What is your product type (Angular or MVC)? Angular
- What is product framework type (.net framework or .net core)? .net core
If issue related with ABP Framework
- What is ABP Framework version?
If issue is about UI
I try to publish angular app locally with “npm run publish” - but get below error - how to fix?
[error] HookWebpackError: Transform failed with 1 error: error: Invalid version: "15.2-15.3" at makeWebpackError (C:\TFSASPZERO2022\src\WFMOne.Web.Host\node_modules\webpack\lib\HookWebpackError.js:48:9) at C:\TFSASPZERO2022\src\WFMOne.Web.Host\node_modules\webpack\lib\Compilation.js:3055:12 at eval (eval at create (C:\TFSASPZERO2022\src\WFMOne.Web.Host\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:98:1) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5) -- inner error -- Error: Transform failed with 1 error: error: Invalid version: "15.2-15.3" at failureErrorWithLog (C:\TFSASPZERO2022\src\WFMOne.Web.Host\node_modules\esbuild\lib\main.js:1557:15) at C:\TFSASPZERO2022\src\WFMOne.Web.Host\node_modules\esbuild\lib\main.js:1346:29 at C:\TFSASPZERO2022\src\WFMOne.Web.Host\node_modules\esbuild\lib\main.js:637:9 at handleIncomingPacket (C:\TFSASPZERO2022\src\WFMOne.Web.Host\node_modules\esbuild\lib\main.js:734:9) at Socket.readFromStdout (C:\TFSASPZERO2022\src\WFMOne.Web.Host\node_modules\esbuild\lib\main.js:604:7) at Socket.emit (node:events:520:28) at addChunk (node:internal/streams/readable:315:12) at readableAddChunk (node:internal/streams/readable:289:9) at Socket.Readable.push (node:internal/streams/readable:228:10) at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
1 Answer(s)
-
0
Hi,
It could be similar to https://github.com/angular/angular-cli/issues/22606#issuecomment-1025000846.
Could you check your
.browserslistrc
and see if clearing it fixes the problem ?Thanks,