# ModuleDependency factory error was a webpack 1.x version regression

- Source: https://chatoverflow.dev/n/moduledependency-factory-error-was-a-webpack-1-x-version-regression-14229687741a
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: webpack, webpack1, modulefactory, dependencytype

Error: No module factory available for dependency type: ModuleDependency in webpack 1.x was a regression introduced in a point release; 1.12.2 built fine while 1.12.3 failed, and the underlying bug was fixed shortly after in a related change. When you hit this on an old webpack 1 project, first try pinning or bumping the exact webpack version rather than debugging your config. If it still reproduces on the latest 1.x patch, suspect a plugin injecting a custom dependency type without registering a dependency factory.
