MCPcopy Index your code
hub / github.com/nodejs/node / exportsNotFound

Function exportsNotFound

lib/internal/modules/esm/resolve.js:314–318  ·  view source on GitHub ↗

* Returns an error object indicating that the specified subpath was not exported by the package. * @param {string} subpath - The subpath that was not exported. * @param {URL} packageJSONUrl - The URL of the package.json file. * @param {string | URL | undefined} [base] - The base URL to use for re

(subpath, packageJSONUrl, base)

Source from the content-addressed store, hash-verified

312 * @returns {ERR_PACKAGE_PATH_NOT_EXPORTED} - The error object.
313 */
314function exportsNotFound(subpath, packageJSONUrl, base) {
315 return new ERR_PACKAGE_PATH_NOT_EXPORTED(
316 fileURLToPath(new URL('.', packageJSONUrl)), subpath,
317 base && fileURLToPath(base));
318}
319
320/**
321 * Throws an error indicating that the given request is not a valid subpath match for the specified pattern.

Callers 1

packageExportsResolveFunction · 0.85

Calls 1

fileURLToPathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…