oracle / bots-node-sdk

Oracle Bots Node.js SDK
https://oracle.github.io/bots-node-sdk/
Other
55 stars 53 forks source link

typescript component does not compile #30

Open alisbiaa opened 1 year ago

alisbiaa commented 1 year ago

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?

stevendavelaar commented 1 year ago

Did you run npm install?

alisbiaa commented 1 year ago

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?

stevendavelaar commented 1 year ago

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 commented 1 year ago

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

alisbiaa commented 1 year ago

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