eirslett / frontend-maven-plugin

"Maven-node-grunt-gulp-npm-node-plugin to end all maven-node-grunt-gulp-npm-plugins." A Maven plugin that downloads/installs Node and NPM locally, runs NPM install, Grunt, Gulp and/or Karma.
Apache License 2.0
4.2k stars 868 forks source link

A dynamic link library (DLL) initialization routine failed. #1144

Open kumargauravin opened 1 month ago

kumargauravin commented 1 month ago

Bug

What is the current behavior? while running nextjs build next build command, facing following error:- [INFO] Creating an optimized production build ... [INFO] ⚠ Attempted to load @next/swc-win32-ia32-msvc, but an error occurred: A dynamic link library (DLL) initialization routine failed. [INFO] \?\C:\Users\gauku9e\Work\sor-nbs-recon-dashboard-service-ui\node_modules\@next\swc-win32-ia32-msvc\next-swc.win32-ia32-msvc.node [INFO] ⨯ Failed to load SWC binary for win32/ia32, see more info here: https://nextjs.org/docs/messages/failed-loading-swc [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 31.283 s [INFO] Finished at: 2024-05-13T04:36:11-04:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.15.0:npm (npm run build) on project nextjs-app: Failed to run task: 'npm run build --debug --https-proxy=http://proxy.ebiz.verizon.com:80 --proxy=http://proxy.ebiz.verizon.com:80 --noproxy=127.0.0.1 --noproxy=.verizon.com' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: -1073741819 (Exit value: -1073741819) -> [Help 1] [ERROR]

What is the expected behavior? Build should pass and should allow to install the SWC library which is not part of package.json file.

Please mention your frontend-maven-plugin and operating system version. LATEST_VERSION