Skip to content

Error when generating a new user-story project #9

Description

@DvirH

Problem
I'm getting the following error when running yarn: backend dev command for a new user story:

generateComponents start
generateSkeletonCompositionFromStory: generating configuration
generateSkeletonCompositionFromStory: composition saved
generateComponentsConfigurations: generating configuration
TypeError: uiComponents.filter is not a function
    at C:\Projects\react.agent\backend\main\react-agent\generateComponentsConfigurations.ts:43:47
    at Generator.next (<anonymous>)
    at fulfilled (C:\Projects\react.agent\backend\main\react-agent\generateComponentsConfigurations.ts:5:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

How to reproduce?

  1. Create a new directory with any name under frontend/main/src/react-agent
  2. Clone the user story.md file from AnalyticsDashboard
  3. run yarn: backend dev command

It seems like the components.json missing the uiComponent property for some of the components which leads to an error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions