Skip to content

Commit

Permalink
fix: ERR_UNKNOWN_FILE_EXTENSION is undefined
Browse files Browse the repository at this point in the history
> TypeError: ERR_UNKNOWN_FILE_EXTENSION is not a constructor
  • Loading branch information
bluelovers authored Dec 6, 2021
1 parent 3a2848c commit 8c8a652
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dist-raw/node-errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ exports.codes = {
ERR_PACKAGE_PATH_NOT_EXPORTED: createErrorCtor(joinArgs('ERR_PACKAGE_PATH_NOT_EXPORTED')),
ERR_UNSUPPORTED_DIR_IMPORT: createErrorCtor(joinArgs('ERR_UNSUPPORTED_DIR_IMPORT')),
ERR_UNSUPPORTED_ESM_URL_SCHEME: createErrorCtor(joinArgs('ERR_UNSUPPORTED_ESM_URL_SCHEME')),
ERR_UNKNOWN_FILE_EXTENSION: createErrorCtor(joinArgs('ERR_UNKNOWN_FILE_EXTENSION')),
}

function joinArgs(name) {
Expand Down

0 comments on commit 8c8a652

Please sign in to comment.