import a directory URL is unsupported. Instead, [self-reference a package using its name][] and [define a custom subpath][] in the ["exports"][] field of the [package.json][] file.

    1. import './'; // unsupported
    2. import './index.js'; // supported
    3. import 'package-name'; // supported