From 1e2beeea996c5d4f6d61c2f9ef2a7d8655bc4384 Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Sat, 23 Jan 2021 13:33:20 +0200 Subject: [PATCH] doc: list Unsupported Directory Import resolve err PR-URL: https://github.com/nodejs/node/pull/37032 Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca --- doc/api/esm.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/esm.md b/doc/api/esm.md index 5a180d21f88ae8..f8d2c75336bc35 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -1012,6 +1012,8 @@ The resolver can throw the following errors: subpath in the package for the given module. * _Package Import Not Defined_: Package imports do not define the specifier. * _Module Not Found_: The package or module requested does not exist. +* _Unsupported Directory Import_: The resolved path corresponds to a directory, + which is not a supported target for module imports. ### Resolver Algorithm Specification