Sample Virtual Assistant Deployment: Folder structure is not proper #2336
Comments
@lauren-mills , @Batta32 This issue has been marked for backlog. Could you please help me with workaround to install type script based sample virtual assistant with proper directory structure to proceed in the mean time? |
Hi @urdurgaprasad, Investigating the deployment.ps1 and publish.ps1 files, we discovered the final message after the deployment, gives indications on running the publish.ps1 script using the variable We'll be updating the deployment.ps1 script to fix this message, and in the meantime, you can omit that parameter, as it will default to your project path correctly, thus publishing correctly. Let us know if this works for you! 😊 |
@dfavretto It worked, thank you. One more observation, luis_functions.ps1 referring to .luis files where as in repository structure we have .lu files only. Same with qna_functions.ps1. One query, why we are maintaining two different folders i.e. src and lib with almost same replica of files? |
Hi @urdurgaprasad, Regarding the For the two different folders, this is the way TypeScript works, you have your If you want to interiorize deeper on how TypeScript works, you can check the official documentation. |
@dfavretto Thank You for the detailed explanation. It is very helpful. In my machine, this .lu to .luis conversion is failing with error in resolving the path . In my machine, my user id is created as 'Durga Prasad'.Because of the space with in the user id, unable to resolve the path and not creating .luis file. Any suggestion on how this can be resolved by overriding the path ? |
@urdurgaprasad let us check this out, we'll do some testing using a Virtual Assistant with spaces in the path and we'll reach you later |
@urdurgaprasad we came up with some questions:
In our case, we tested with the following environment:
We executed the deploy script adding a As a workaround, you can execute the
|
@Batta32 Please find the requested information below:
Error while running deploy script: and when I looked at log below is the message: Below is the error while connecting skill to existing virtual assistant: |
@Batta32 In your case, your user name created as "MartinBattaglino" where as mine is "Durga Prasad" with space between. So, my doubt is these scripts are referring libraries located in path |
Hi @urdurgaprasad, We just understood what you meant, it wasn't an issue related to how the Try changing the location of the Also, here you have some links to review: |
@Batta32 Below link helped to resolve the issue. Thank you all for your support. https://blog.jsinh.in/change-default-nodejs-npm-and-npm-cache-directory-on-windows/#.XYHT1ihKhPZ |
Awesome @urdurgaprasad! We will close the issue because you could make it work! Feel free to reopen if you have a similar issue. |
What project is affected?
botframework-solutions - Sample Virtual Assistant (Typescript)
What language is this in?
English
What happens?
Bot builder deployment script generating lib and node modules folders in root directory where package.json, tsconfig.json and web.config files are located. Where as part of publish command it has been referred project directory as root directory\src. With this, required package.json, lib folders, web.config files are missing and unable to start sample bot in web client post deployment.
Also please confirm, web.config should refer index.js or index.ts?
What are the steps to reproduce this issue?
Followed instructions specified in link https://microsoft.github.io/botframework-solutions/tutorials/typescript/create-assistant/1_intro/ for typescript VA sample.
What were you expecting to happen?
Can you share any logs, error output, etc.?
Any screenshots or additional context?
The text was updated successfully, but these errors were encountered: