Conversational Core Template: Cannot read property 'content' of undefined
See original GitHub issueDescribe the bug
Creating a new bot with the Conversational Core (preview) template throws the error TypeError Cannot read property 'content' of undefined
.
Version
Browser
- Electron distribution
- Chrome
- Safari
- Firefox
- Edge
OS
- macOS
- Windows
- Ubuntu
To Reproduce
Steps to reproduce the behavior:
- Select New
- Select the Conversational Core template. Hit Next.
- Select a directory to store the bot. Next.
- Watch the loader say Getting template.
- Watch the loader say Building runtime.
I continued the following, which may provide additional useful (or unrelated) details about a second error:
- Select Conversational Core from the Examples shortcut
- Select a directory to store the bot. Next.
- Get a 500 error.
- Repeat the first 5 steps to try again
- Get the same error
Expected behavior
The bot creates using the conversational core template. Composer does not throw the error.
Screenshots
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
TypeError: Cannot read property 'content' of undefined ...
node. js - TypeError: Cannot read property 'content' of undefined when asking for confirmation - Stack Overflow. Stack Overflow for Teams – ...
Read more >JavaScript policy runtime error troubleshooting | Apigee X
The error indicates that the property length cannot be read from an undefined object. Examine the line number in the JavaScript source file ......
Read more >ERROR TypeError: Cannot read property title of undefined
Solved Angular Uncaught Error: Template parse errors: : 'xxxComponent' is not a known element: CodeDocu Developer C# Asp Net Angular.
Read more >Intrgormat integration results in The operation failed with ...
I am trying to use Integromat with my Jotform and it does collect the data but fails trying during the MS Word Template...
Read more >Sunshine Conversations API Reference
Introduction. Welcome to the Sunshine Conversations API. The API allows you to craft entirely unique messaging experiences for your app and website as...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @chrisshaw this has been addressed and will be available in a new release.
@chrisshaw I believe your hypothesis is correct. I remember having similar issue due to blank content in the qna file but we released a new version of the template package that should have resolved this. As far as the dir already exists that seems to be a symptom of the erroneous creation flow leaving files in your dir even though it did not successfully create. Trying a different bot name in creation should result in it not trying to write to the same file again but as you have noted that seems to still throw an error (hypothesis being the empty qna file).
We will be releasing a new version of Composer in the next few weeks. The conversational core functionality has been greatly refactored and enhanced and both the ‘clean up files when creation errors’ and ‘empty qna’ file have been resolved in the new implementation. The new implementation also using local yeomen env generators for templates as opposed to the C# nuget implementation of the preview release you are having issues with.
I recommend we wait for that release and try and reproduce the issue in the updated flow. My hopes are that the large refactor results in resolving this particular issue.
I will leave this issue open and follow up once R12 has gone GA to walk you through the new flow. Then we can validate if this issue still exists in the new implementation and tackle troubleshooting if it does.
Many thanks for your patience and outlining the issue thus far. I have high hopes that the new implementation will resolve the issue and you will be able to create component model templates without a hitch!