mitosis icon indicating copy to clipboard operation
mitosis copied to clipboard

Children prop is broken on Angular

Open seasheepjoe opened this issue 4 months ago • 3 comments

I am interested in helping provide a fix!

Yes

Which generators are impacted?

  • [ ] All
  • [X] Angular
  • [ ] HTML
  • [ ] Preact
  • [ ] Qwik
  • [ ] React
  • [ ] React-Native
  • [ ] Solid
  • [ ] Stencil
  • [ ] Svelte
  • [ ] Vue
  • [ ] Web components

Reproduction case

https://mitosis.builder.io/playground/?code=KYDwDg9gTgLgBAE2AMwIYFcA29noHYDGMAlhHnALICeAwhALaR7B4wAUYUEYAzgJRwA3gCg4cKMBjoo5NqLFwAPAmIA3AHzyFSgGLQ4wVAQAWAXkGduPAHQnimBBLwBfTdrGC2dhwBo4xPCQQAVN1ODl3BWU1dUFvBGdFAHoVDS0FPmd0sWS9KDcolJj5PgBuYWcgA%3D%3D

Expected Behaviour

With this simple code, it should render the same as the React component.

Actual Behaviour

However, in an angular test-app, the compiler fails to compile because the children prop is undefined.

Additional Information

The screenshot below shows the compilation error. Screenshot 2024-10-03 at 13 03 41 Maybe I am using the children prop wrong ?

seasheepjoe avatar Oct 03 '24 11:10 seasheepjoe