You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a build fails especially on frontend, we see it throws an error but process don't exit. Due to it the build just hangs instead of exiting.
server-webpack error ModuleNotFoundError: Module not found: Error: Can't resolve 'apollo-link-scalar' in '/Users/fullstack-pro/servers/frontend-server/src/modules'
at factory.create (/Users/fullstack-pro/node_modules/webpack/lib/Compilation.js:925:10)
@veeramarni I think in that place process.exit would be bad, because it will terminate the process during watch mode, which is not desired. I think exit on error during build should be taken care of via this line: https://github.com/sysgears/larix/blob/master/packages/zen/src/executor.ts#L1243
Can you try to troubleshoot on your project why this place doesn't get triggered?
When a build fails especially on frontend, we see it throws an error but process don't exit. Due to it the build just hangs instead of exiting.
The fix I have found that work is by replacing this line https://github.com/sysgears/larix/blob/master/packages/zen/src/executor.ts#L121 with
process.exit(1)
. Let me know if you want me to send PR.The text was updated successfully, but these errors were encountered: