-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pnpm monorepo lose type checking of the SDK during tests #1628
Comments
Okay I'm learning.
The clarinet-sdk is taking advantage of this of this npm feature (use module that are not specified in the package.json), by requiring So as a possible workaround, you can add the following dependencies to the package.json "@hirosystems/clarinet-sdk-wasm": "^2.11.0",
"@vitest/expect": "1.6.0", I don't have a better solution for now. This command has been helpful to debug the issue $ pnpm tsc --listFiles |
The fix is great for now thanks! |
Closing this issue for now. |
Describe the bug
The SDK class is not properly typed when using clarinet in a pnpm monorepo. So calling the following code is not showing any error in the code editors where it should be having a TS issue.
Also running
pnpm tsc --noEmit
is not reporting the error.You can find a repo showing the problem here https://github.com/pradel/clarinet-pnpm-monorepo-issue.
To Reproduce
Steps to reproduce the behavior:
pnpm install
cd apps/contracts
pnpm test
is working but should be reporting a type errorExpected behavior
Report the type error.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: