I bind typescript project and webpack fails with error
ERROR in (webpack)/lib/NormalModule.js
Module not found: Error: Can't resolve 'module' in 'C:\SPA\MyApp\node_modules\webpack\lib'
@ (webpack)/lib/NormalModule.js 91:16-33
If I crack the module out
var Module = require("module");
, the
var Module = require("./module");
problem is resolved.
Can anyone understand what could be causing this? It seems strange that no one reports this as a problem. This line is here:
https://github.com/webpack/webpack/blob/master/lib/NormalModule.js#L90
source
share