You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
516 B

4 years ago
  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;