mendix / docs

Mendix documentation repository
https://docs.mendix.com
Creative Commons Attribution 4.0 International
137 stars 708 forks source link

build-a-pluggable-web-widget-part-2-advanced missing "children" in export interface #7284

Closed laurenra7 closed 4 months ago

laurenra7 commented 5 months ago

Please use the form below, leaving the prefilled data to help us. Thank you.

Page link: build-a-pluggable-web-widget-part-2-advanced

Document link: create-a-pluggable-widget-two.md

My Issue/Suggestion

The code snippet for Alert.tsx won't compile. The error is:

`[!] (plugin typescript) Error: @rollup/plugin-typescript TS2339: Property 'children' does not exist on type 'AlertProps'. src/components/Alert.tsx (10:79)

10 export const Alert: FunctionComponent = ({ alertStyle, className, children }) => children ? (`

Whoever wrote the code snippet didn't test it to see that it works. It needs an additional property named children.

ConnorLand commented 4 months ago

Hello @laurenra7 ,

This snippet issue has been fixed here: https://github.com/mendix/docs/pull/7296

Thank you for bringing this to the attention of docs and improving Mendix documentation.

Connor