You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My doing a git clone of the project, running "pnpm install" and then "pnpm test" on it, leads to this error:
✘ [ERROR] Failed to resolve entry for package "vite-plugin-doctest". The package may have incorrect main/module/exports specified in its package.json. [plugin externalize-deps]
│ ../node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1374:27:
│ 1374 │ let result = await callback({
│ ╵ ^
│ at packageEntryFailure (file:///tmp/doc-vitest/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:48264:17)
│ at resolvePackageEntry (file:///tmp/doc-vitest/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:48261:5)
│ at tryNodeResolve (file:///tmp/doc-vitest/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:48031:20)
│ at resolveByViteResolver (file:///tmp/doc-vitest/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:68607:32)
│ at file:///tmp/doc-vitest/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:68639:40
│ at requestCallbacks.on-resolve (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1374:28)
│ at handleRequest (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:732:17)
│ at handleIncomingPacket (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:757:7)
│ at Socket.readFromStdout (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:680:7)
│ at Socket.emit (node:events:519:28)
│ This error came from the "onResolve" callback registered here:
│ ../node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1293:20:
│ 1293 │ let promise = setup({
│ ╵ ^
│ at setup (file:///tmp/doc-vitest/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:68624:27)
│ at handlePlugins (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1293:21)
│ at buildOrContextImpl (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:979:5)
│ at Object.buildOrContext (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:788:5)
│ at /tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:2215:15
│ at new Promise (<anonymous>)
│ at Object.build (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:2214:25)
│ at build (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:2047:51)
│ at bundleConfigFile (file:///tmp/doc-vitest/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:68583:26)
│ The plugin "externalize-deps" was triggered by this import
│ vite.config.ts:1:262:
│ 1 │ ...test/vite.config.ts";import { doctest } from "vite-plugin-doctest";
│ ╵ ~~~~~~~~~~~~~~~~~~~~~
│ failed to load config from /tmp/doc-vitest/test/vite.config.ts
│ ⎯⎯⎯⎯⎯⎯ Unhandled Error ⎯⎯⎯⎯⎯⎯⎯
│ Error: Build failed with 1 error:
│ ../node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1374:27: ERROR: [plugin: externalize-deps] Failed to resolve entry for package "vite-plugin-doctest". The package …
│ at failureErrorWithLog (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1651:15)
│ at /tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1059:25
│ at runOnEndCallbacks (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1486:45)
│ at buildResponseToResult (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1057:7)
│ at /tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1086:16
│ at responseCallbacks.<computed> (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:704:9)
│ at handleIncomingPacket (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:764:9)
│ at Socket.readFromStdout (/tmp/doc-vitest/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:680:7)
│ at Socket.emit (node:events:519:28)
│ at addChunk (node:internal/streams/readable:559:12) {
│ errors: [Getter/Setter],
│ warnings: [Getter/Setter]
│ }
└─ Failed in 253ms at /tmp/doc-vitest/test
/tmp/doc-vitest/test:
ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL test@ test: `vitest run`
Exit status 1
ELIFECYCLE Test failed. See above for more details.
The text was updated successfully, but these errors were encountered:
wizzardx
changed the title
ssssota / doc-vitest
unit test failures on doc-vitest
Aug 30, 2024
My doing a git clone of the project, running "pnpm install" and then "pnpm test" on it, leads to this error:
The text was updated successfully, but these errors were encountered: