Closed AlexTechNoir closed 1 year ago
Upd: I managed to run the script by appending "node" into "build" script, like "build": "rm -rf dist && node ./node_modules/.bin/tsc -p tsconfig.json"
, but now terminal says:
$ npm run start
> medusa-starter-default@0.0.1 start
> npm run build && NODE_ENV=development node ./dist/main.js
> medusa-starter-default@0.0.1 build
> rm -rf dist && node ./node_modules/.bin/tsc -p tsconfig.json
C:\Users\Alex\Desktop\medusa\backend\node_modules\.bin\tsc:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
^^^^^^^
SyntaxError: missing ) after argument list
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1031:15)
at Module._compile (node:internal/modules/cjs/loader:1065:27)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47
Tsc should not be run using node in front of it. Are you on windows?
If you are on windows, relative paths works differently so you should look for that
Yes, I'm on Windows. Thanks for the tip!
Describe the bug
I was following this medusa-extender docs: run
npm install medusa-extender
and./node_modules/.bin/medex init
. Then, I launchednpm run start
, but the terminal showed an error:This is happening even after uninstalling medusa-exntender
To Reproduce
Steps to reproduce the behavior:
medusa-extender
to an existing Medusa project by runningnpm install medusa-extender
and./node_modules/.bin/medex init
npm run start
Expected behavior
Medusa Server should run as extender docs said
Package version: