Summary
Following this tutorial currently fails on a fresh setup due to version/config drift.
I’m opening this issue to provide a reproducible report and propose fixes.
Environment
- Date tested: March 3, 2026
- OS: macOS (Apple Silicon)
- Node: v22.16.0 (also tested with Node 20 LTS)
- npm: <your npm -v>
- Clarinet: <your clarinet --version>
Reproduction
- Clone repo
- Install dependencies:
npm install
- Run checks/tests:
clarinet check
npm test -- --run
Current errors observed
- Deployment plan parsing error:
unknown variant 'transaction-type' in deployments/default.simnet-plan.yaml
- Missing contract file:
unable to find contract at contracts/mock-token-2.clar
- Contract compile issue:
- unresolved
THIS_CONTRACT / invalid use around transfer calls in contracts/amm.clar
- Vitest runtime issues (depending on Node/version combo):
Failed to start forks worker
- Vitest deprecation warning:
- clarinet environment uses deprecated
transformMode (Vitest 4 warning)
Expected behavior
clarinet check passes
npm test -- --run passes out of the box for first-time learners
Proposed fix
- Align
Clarinet.toml contract paths/versions
- Ensure
mock-token-2 is present or mapped correctly
- Update transfer logic in
amm.clar to valid Clarity pattern
- Update
vitest.config to stable worker pool (threads, single worker)
- Regenerate deployment plan with current Clarinet schema
- Add tested version matrix to README
Summary
Following this tutorial currently fails on a fresh setup due to version/config drift.
I’m opening this issue to provide a reproducible report and propose fixes.
Environment
Reproduction
npm installclarinet checknpm test -- --runCurrent errors observed
unknown variant 'transaction-type'indeployments/default.simnet-plan.yamlunable to find contract at contracts/mock-token-2.clarTHIS_CONTRACT/ invalid use around transfer calls incontracts/amm.clarFailed to start forks workertransformMode(Vitest 4 warning)Expected behavior
clarinet checkpassesnpm test -- --runpasses out of the box for first-time learnersProposed fix
Clarinet.tomlcontract paths/versionsmock-token-2is present or mapped correctlyamm.clarto valid Clarity patternvitest.configto stable worker pool (threads, single worker)