Skip to content

when build fails, it throws error but process do not exit #17

@veeramarni

Description

@veeramarni

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)

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions