ModuleNotFoundError.js 516 B

1234567891011121314151617181920212223
  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) {
  9. super("Module not found: " + err);
  10. this.name = "ModuleNotFoundError";
  11. this.details = err.details;
  12. this.missing = err.missing;
  13. this.module = module;
  14. this.error = err;
  15. Error.captureStackTrace(this, this.constructor);
  16. }
  17. }
  18. module.exports = ModuleNotFoundError;