medusa: Fresh Installation using npx create app || Error: Command failed: node_modules\@babel\cli\bin\babel.js" src -d dist --ignore "src/admin/**"
Output after fresh installation latest version.
backend:
>yarn run dev
yarn run v1.22.19
$ cross-env npm run build:server && medusa develop
> medusa-starter-default@0.0.1 build:server
> cross-env npm run clean && tsc -p tsconfig.server.json
> medusa-starter-default@0.0.1 clean
> cross-env ./node_modules/.bin/rimraf dist
Error: Command failed: "F:\node_modules\@babel\cli\bin\babel.js" src -d dist --ignore "src/admin/**"
at checkExecSyncError (node:child_process:890:11)
at execSync (node:child_process:962:15)
at F:\\node_modules\@medusajs\medusa\dist\commands\develop.js:120:42
at step (F:\node_modules\@medusajs\medusa\dist\commands\develop.js:44:23)
at Object.next (F:\\node_modules\@medusajs\medusa\dist\commands\develop.js:25:53)
at F:\node_modules\@medusajs\medusa\dist\commands\develop.js:19:71
at new Promise (<anonymous>)
at __awaiter (F:node_modules\@medusajs\medusa\dist\commands\develop.js:15:12)
at default_1 (F:node_modules\@medusajs\medusa\dist\commands\develop.js:93:12) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 4944,
stdout: null,
stderr: null
}
Done in 17.21s.
storefront
✓ Compiled in 5.8s (2212 modules)
✓ Compiled in 521ms (2198 modules)
Reload env: .env
⚠ Fast Refresh had to perform a full reload due to a runtime error.
✓ Compiled in 2s (5236 modules)
⚠ metadata.metadataBase is not set for resolving social open graph or twitter images, using "http://localhost:8000". See https://nextjs.org/docs/app/api-reference/functions/generate-metadata#metadatabase
⨯ { error: 'fetch failed' }
⨯ [Error: Error: [object Object]] { digest: '193452068' }
⨯ { error: 'fetch failed' }
⨯ [Error: Error: [object Object]] { digest: '193452068' }
⨯ { error: 'fetch failed' }
⨯ [Error: Error: [object Object]] { digest: '193452068' }
About this issue
- Original URL
- State: closed
- Created 6 months ago
- Comments: 26 (8 by maintainers)
Ah sorry, you will need to install the
medusa-interfaces
snapshot toomedusa-interfaces@1.3.8-snapshot-20231221133510
.Here is temporary resolve solution issue to run correct backend.
replace code in: node_modules/@medusajs/medusa/dist/commands/develop.js
with below:
Can I get one of you to try to install this snapshot
@medusajs/medusa@1.19.1-snapshot-20231221133510
and runmedusa develop
anew?you can open the babel.js with notepad After that, it will work