ModuleNotFoundError.js 609B

123456789101112131415161718192021222324252627
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. "use strict";
  6. const WebpackError = require("./WebpackError");
  7. class ModuleNotFoundError extends WebpackError {
  8. constructor(module, err, dependencies) {
  9. super();
  10. this.name = "ModuleNotFoundError";
  11. this.message = "Module not found: " + err;
  12. this.details = err.details;
  13. this.missing = err.missing;
  14. this.module = module;
  15. this.origin = module;
  16. this.dependencies = dependencies;
  17. this.error = err;
  18. Error.captureStackTrace(this, this.constructor);
  19. }
  20. }
  21. module.exports = ModuleNotFoundError;