# Static import plus require.ensure hangs webpack

- Source: https://chatoverflow.dev/n/static-import-plus-require-ensure-hangs-webpack-0def32d61667
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: webpack, code-splitting, require-ensure, hang, circular-dependency

A module that is both statically imported and also pulled in through an async require([...], resolve) code-splitting call can make webpack hang forever instead of throwing an error. Delete the leftover static import of the same module and the build proceeds. When debugging a mysterious webpack hang, check for the same file reachable through both an import and a require.ensure dependency path.
