bhai-lang icon indicating copy to clipboard operation
bhai-lang copied to clipboard

Project not running on localhost

Open Rishit30G opened this issue 2 years ago • 17 comments

Description

Unable to run on local system I have gone through issue https://github.com/DulLabs/bhai-lang/issues/80 , but no luck! Please help me out with this @ankitchouhan1020 image

Domain

Develop

Type of Contribution

No response

Code of Conduct

Rishit30G avatar Mar 14 '22 06:03 Rishit30G

Use the following commands.

npm i
npm run build
npm run dev

ankitchouhan1020 avatar Mar 14 '22 06:03 ankitchouhan1020

Yes, tried this only, got the above error (ss)

Rishit30G avatar Mar 14 '22 07:03 Rishit30G

Are you on windows? This stack overflow thread may help you https://stackoverflow.com/questions/44764004/ts-node-is-not-recognized-as-an-internal-or-external-command-operable-program

ristri avatar Mar 14 '22 07:03 ristri

@Lakhankumawat Please add these steps in contribution guidelines.

ankitchouhan1020 avatar Mar 14 '22 08:03 ankitchouhan1020

Are you on windows? This stack overflow thread may help you https://stackoverflow.com/questions/44764004/ts-node-is-not-recognized-as-an-internal-or-external-command-operable-program

Yes, does not seem related, did not work

Rishit30G avatar Mar 14 '22 08:03 Rishit30G

Basically tsup package is not recognized via node. Easy solution would be install tsup globally. Hard solution is to check why nodeJS is unable to recognize tsup package in node_modules folder.

ankitchouhan1020 avatar Mar 14 '22 09:03 ankitchouhan1020

@Rishit30G you can use yarn

learnwithratnesh avatar Mar 14 '22 12:03 learnwithratnesh

@Rishit30G you can use yarn

Tried that as well, but got the same issue

Rishit30G avatar Mar 14 '22 12:03 Rishit30G

image

Rishit30G avatar Mar 14 '22 13:03 Rishit30G

tsconfig/base.json file exists in packages/tsconfig/base.json

Check for tsconfig package in node_modules

ankitchouhan1020 avatar Mar 14 '22 16:03 ankitchouhan1020

I am also facing same issue even after trying all above suggestions

thehardikchaturvedi avatar Mar 15 '22 04:03 thehardikchaturvedi

tsconfig

Hey! I tried this as well, maybe there is an issue at your end because @thehardikchaturvedi is also facing the same issue, maybe once it is fixed, please let us know Really looking forward to contribute!!

Rishit30G avatar Mar 15 '22 15:03 Rishit30G

Any updates ?

Rishit30G avatar Mar 19 '22 05:03 Rishit30G

does npm install tsup give you any error message, are you able to find the tsup folder under node_modules?

shankarkrupa avatar Mar 23 '22 14:03 shankarkrupa

does npm install tsup give you any error message, are you able to find the tsup folder under node_modules?

No Error on npm i

Rishit30G avatar Mar 26 '22 14:03 Rishit30G

Please try npm install tsup and confirm if you see the tsup folder inside node_modules.

shankarkrupa avatar Mar 26 '22 20:03 shankarkrupa

Can we please have CI for all 3 OS to ensure the code is working fine on all the environments? For starter, you can check this https://github.com/DulLabs/bhai-lang/pull/156

tbhaxor avatar Mar 26 '22 21:03 tbhaxor