bots-node-sdk icon indicating copy to clipboard operation
bots-node-sdk copied to clipboard

typescript component does not compile

Open alisbiaa opened this issue 3 years ago • 5 comments

The goal is to create a custom component on my local machine using typescript for debugging purposes Initially I did create the component with the following command > bots-node-sdk init PizzaService --name pizza-service --language typescript then > npm run start image

I have tried deleting node_modules and package-lock.json and nothing changed.

This is what package.json has image

Does anyone have a solution for this, please?

alisbiaa avatar Dec 15 '22 22:12 alisbiaa

Did you run npm install?

stevendavelaar avatar Dec 16 '22 11:12 stevendavelaar

Did you run npm install?

Hi @stevendavelaar, yes. I did. Can you try it on your machine and confirm whether you ran into the same issue or not?

alisbiaa avatar Dec 16 '22 12:12 alisbiaa

It works for me, but I am using a Mac. Maybe this link helps? https://stackoverflow.com/questions/73367103/npm-install-g-typescript-doesnt-install-correctly-on-windows-missing-tsc-cm

stevendavelaar avatar Dec 16 '22 14:12 stevendavelaar

Or this link: https://github.com/npm/npm/issues/17444 . This seems to be a Windows specific issue

stevendavelaar avatar Dec 16 '22 14:12 stevendavelaar

Thank you. It seems like it is a Windows issue. I changed the operator to Linux and it works fine.

alisbiaa avatar Dec 16 '22 20:12 alisbiaa