Skip to content

Update instruction message after create-yoga on npx - #48

Open
rasadeghnasab wants to merge 1 commit into
aexol-studio:mainfrom
rasadeghnasab:update-create-youga-instructions-on-npm
Open

Update instruction message after create-yoga on npx#48
rasadeghnasab wants to merge 1 commit into
aexol-studio:mainfrom
rasadeghnasab:update-create-youga-instructions-on-npm

Conversation

@rasadeghnasab

@rasadeghnasab rasadeghnasab commented Aug 4, 2025

Copy link
Copy Markdown

currently after running

npx @aexol/axolotl create-yoga YOUR_PROJECT_NAME

you will receive an instruction like

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Starter GraphQL Axolotl Server - GraphQL Yoga example created.
To run it, type:
cd forum && npm run start
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

but after running npm run start you will receive the following error message

npm run start                                                                                  ✔  study-analysis-service 3.12.6   00:49:36

> beerpub-yoga@0.8.7 start
> node lib/index.js

node:internal/modules/cjs/loader:1228
  throw err;
  ^

Error: Cannot find module '~/myproject/lib/index.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
    at Module._load (node:internal/modules/cjs/loader:1051:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v20.18.0

simply because the lib directory is not there, hence you need to run npm build before npm start. So I've updated the message to be like

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Starter GraphQL Axolotl Server - GraphQL Yoga example created.
To run it, type:
cd forum &&  npm run build && npm run start
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@vercel

vercel Bot commented Aug 4, 2025

Copy link
Copy Markdown

@rasadeghnasab is attempting to deploy a commit to the aexol-studio Team on Vercel.

A member of the Team first needs to authorize it.

@aexol

aexol commented Aug 6, 2025

Copy link
Copy Markdown
Contributor

I see, but the correct command is dev. Start is to start the built server on your server

@rhbmedicuja

Copy link
Copy Markdown

From my perspective we have two options here. we either need to extend the message and show both options or if choose one over another it should work without an error.
@aexol Wdyt?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants