From d98cffbc8917c5226129a469850f8bb9a24afb08 Mon Sep 17 00:00:00 2001 From: doresa0 Date: Mon, 10 Aug 2026 01:05:15 +0300 Subject: [PATCH] docs: add missing cd src before library file creation create-next-app places app/ under src/, so mkdir/touch for lib/ must run from src/ for page.tsx ../lib imports to resolve. --- docs/src/web-client/counter_contract_tutorial.md | 2 ++ docs/src/web-client/create_deploy_tutorial.md | 3 ++- docs/src/web-client/creating_multiple_notes_tutorial.md | 1 + docs/src/web-client/foreign_procedure_invocation_tutorial.md | 2 ++ docs/src/web-client/unauthenticated_note_how_to.md | 1 + 5 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/src/web-client/counter_contract_tutorial.md b/docs/src/web-client/counter_contract_tutorial.md index 024c4f5..5c13f0d 100644 --- a/docs/src/web-client/counter_contract_tutorial.md +++ b/docs/src/web-client/counter_contract_tutorial.md @@ -103,6 +103,7 @@ export default function Home() { The counter contract code lives in a separate `.masm` file. Create a `lib/masm/` directory and add the contract file: ```bash +cd src mkdir -p lib/masm ``` @@ -183,6 +184,7 @@ webpack: (config, { isServer }) => { Create the file `lib/incrementCounterContract.ts`: ```bash +cd src touch lib/incrementCounterContract.ts ``` diff --git a/docs/src/web-client/create_deploy_tutorial.md b/docs/src/web-client/create_deploy_tutorial.md index 8ef7241..767e4a6 100644 --- a/docs/src/web-client/create_deploy_tutorial.md +++ b/docs/src/web-client/create_deploy_tutorial.md @@ -77,9 +77,10 @@ The Miden client is your gateway to interact with the Miden blockchain. It handl ### Create the library file -First, we'll create a separate file for our blockchain logic. In the project root, create a folder `lib/` and inside it `lib/react/createMintConsume.tsx` (React) or `lib/createMintConsume.ts` (TypeScript): +First, we'll create a separate file for our blockchain logic. Inside `src/`, create a folder `lib/` and inside it `lib/react/createMintConsume.tsx` (React) or `lib/createMintConsume.ts` (TypeScript): ```bash +cd src mkdir -p lib ``` diff --git a/docs/src/web-client/creating_multiple_notes_tutorial.md b/docs/src/web-client/creating_multiple_notes_tutorial.md index bb6ba85..2fab82e 100644 --- a/docs/src/web-client/creating_multiple_notes_tutorial.md +++ b/docs/src/web-client/creating_multiple_notes_tutorial.md @@ -138,6 +138,7 @@ export default function Home() { Create `lib/react/multiSendWithDelegatedProver.tsx` (React) or `lib/multiSendWithDelegatedProver.ts` (TypeScript) and add the following code. This snippet initializes the Miden client. ``` +cd src mkdir -p lib ``` diff --git a/docs/src/web-client/foreign_procedure_invocation_tutorial.md b/docs/src/web-client/foreign_procedure_invocation_tutorial.md index 641d1b1..83bfda3 100644 --- a/docs/src/web-client/foreign_procedure_invocation_tutorial.md +++ b/docs/src/web-client/foreign_procedure_invocation_tutorial.md @@ -118,6 +118,7 @@ export default function Home() { The MASM (Miden Assembly) code for our smart contracts lives in separate `.masm` files. Create a `lib/masm/` directory and add the two contract files: ```bash +cd src mkdir -p lib/masm ``` @@ -234,6 +235,7 @@ webpack: (config, { isServer }) => { Create the file `lib/foreignProcedureInvocation.ts` and add the following code. ```bash +cd src touch lib/foreignProcedureInvocation.ts ``` diff --git a/docs/src/web-client/unauthenticated_note_how_to.md b/docs/src/web-client/unauthenticated_note_how_to.md index 73b7e92..50ef635 100644 --- a/docs/src/web-client/unauthenticated_note_how_to.md +++ b/docs/src/web-client/unauthenticated_note_how_to.md @@ -154,6 +154,7 @@ export default function Home() { Create the library file and add the following code: ```bash +cd src mkdir -p lib ```