[attest] Getting `requested module ... does not provide an export` error for my bench script
Hi 👋
I'm having TS performance issues in my project. I think the offender is mainly tRPC with Zod and Drizzle, but I wanted to analyze a bit more before changing too much of my code.
So I set up a very basic
bench.ts
script to check how long the tRPC appRouter would take to instantiate.
However, I'm receiving the following error:
where utils/zod/common
is monorepo typescript package, that holds some utility functions.
It's declared inside my package.json
I'm using pnpm (without hoisting). But there are on type errors for VS Code if I open the bench.ts
file.
How can I resolve this error?1 Reply
That looks like a runtime error on the import. Are you running bench.ts the same way you'd run any other TS script?
There's no special bench runner, so I don't think this is related to attest (e.g. try just deleting all the attest logic and just console logging that import)