MCPcopy
hub / github.com/vitejs/vite / packageEntryFailure

Function packageEntryFailure

packages/vite/src/node/plugins/resolve.ts:997–1005  ·  view source on GitHub ↗
(id: string, details?: string)

Source from the content-addressed store, hash-verified

995}
996
997function packageEntryFailure(id: string, details?: string) {
998 const err: any = new Error(
999 `Failed to resolve entry for package "${id}". ` +
1000 `The package may have incorrect main/module/exports specified in its package.json` +
1001 (details ? ': ' + details : '.'),
1002 )
1003 err.code = ERR_RESOLVE_PACKAGE_ENTRY_FAIL
1004 throw err
1005}
1006
1007function getConditions(
1008 conditions: string[],

Callers 1

resolvePackageEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected