ERR_PACKAGE_PATH_NOT_EXPORTED


package.json "exports" 字段没有导出请求的子路径。 因为导出是封装的,没有导出的私有内部模块无法通过包解析导入,除非使用绝对网址。

The package.json "exports" field does not export the requested subpath. Because exports are encapsulated, private internal modules that are not exported cannot be imported through the package resolution, unless using an absolute URL.