[attest] Error scanning node_modules. How can I make attest trace work?

I'm trying to run attest trace to analyze my Next.js 15 monorepo package. However, I'm getting an error that attest cannot find a module.
attest trace .
Warning: Error scanning /home/path-to-monorepo/apps/my-app/app/node_modules: Error: ENOENT: no such file or directory, stat '/home/path-to-monorepo/apps/my-app/app/node_modules/drizzle-zod'
file:///home/path-to-monorepo/node_modules/.pnpm/@[email protected][email protected]/node_modules/@ark/attest/out/config.js:99
throw new Error(`Specified TypeScript version ${alias} does not exist.` +
^

Error: Specified TypeScript version default does not exist. It should probably be specified in package.json like:
"@ark/attest-ts-default": "npm:typescript@latest"
at file:///home/path-to-monorepo/node_modules/.pnpm/@[email protected][email protected]/node_modules/@ark/attest/out/config.js:99:19
at Array.map (<anonymous>)
at parseTsVersions (file:///home/path-to-monorepo/node_modules/.pnpm/@[email protected][email protected]/node_modules/@ark/attest/out/config.js:96:31)
at parseConfig (file:///home/path-to-monorepo/node_modules/.pnpm/@[email protected][email protected]/node_modules/@ark/attest/out/config.js:87:17)
at getConfig (file:///home/path-to-monorepo/node_modules/.pnpm/@[email protected][email protected]/node_modules/@ark/attest/out/config.js:107:32)
at Object.trace (file:///home/path-to-monorepo/node_modules/.pnpm/@[email protected][email protected]/node_modules/@ark/attest/out/cli/trace.js:26:20)
at file:///home/path-to-monorepo/node_modules/.pnpm/@[email protected][email protected]/node_modules/@ark/attest/out/cli/cli.js:25:24
at ModuleJob.run (node:internal/modules/esm/module_job:271:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:547:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5)
attest trace .
Warning: Error scanning /home/path-to-monorepo/apps/my-app/app/node_modules: Error: ENOENT: no such file or directory, stat '/home/path-to-monorepo/apps/my-app/app/node_modules/drizzle-zod'
file:///home/path-to-monorepo/node_modules/.pnpm/@[email protected][email protected]/node_modules/@ark/attest/out/config.js:99
throw new Error(`Specified TypeScript version ${alias} does not exist.` +
^

Error: Specified TypeScript version default does not exist. It should probably be specified in package.json like:
"@ark/attest-ts-default": "npm:typescript@latest"
at file:///home/path-to-monorepo/node_modules/.pnpm/@[email protected][email protected]/node_modules/@ark/attest/out/config.js:99:19
at Array.map (<anonymous>)
at parseTsVersions (file:///home/path-to-monorepo/node_modules/.pnpm/@[email protected][email protected]/node_modules/@ark/attest/out/config.js:96:31)
at parseConfig (file:///home/path-to-monorepo/node_modules/.pnpm/@[email protected][email protected]/node_modules/@ark/attest/out/config.js:87:17)
at getConfig (file:///home/path-to-monorepo/node_modules/.pnpm/@[email protected][email protected]/node_modules/@ark/attest/out/config.js:107:32)
at Object.trace (file:///home/path-to-monorepo/node_modules/.pnpm/@[email protected][email protected]/node_modules/@ark/attest/out/cli/trace.js:26:20)
at file:///home/path-to-monorepo/node_modules/.pnpm/@[email protected][email protected]/node_modules/@ark/attest/out/cli/cli.js:25:24
at ModuleJob.run (node:internal/modules/esm/module_job:271:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:547:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5)
I'm using [email protected] in a monorepo context. attest trace is run inside an app package.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?