You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Team, I am transferring my storybooj project to ladle, however, something came up during the process.
There are some cases I did in the storybook:
in case.stories.tsx: export {ComponentCode} from ./ComponenyCode
In ComponentCode.tsx I wrote something like this: export ComponentCode =()=>(some react code)
But it did not work in Ladle, it will return the following error:
`
typeerror: TypeError: Cannot read properties of thanks( reading ‘type’) at getNamedExports(...)
`
Is there anything for me to continue use this method? Because it's a large project which I cannot change
Many thanks
The text was updated successfully, but these errors were encountered:
Yea, you can't use export from syntax in stories. Stories need to be statically analyzable and Ladle needs to determine if exported variables are React components or not in order to function.
Describe the bug
Hi Team, I am transferring my storybooj project to ladle, however, something came up during the process.
There are some cases I did in the storybook:
in case.stories.tsx:
export {ComponentCode} from ./ComponenyCode
In ComponentCode.tsx I wrote something like this:
export ComponentCode =()=>(some react code)
But it did not work in Ladle, it will return the following error:
`
typeerror: TypeError: Cannot read properties of thanks( reading ‘type’) at getNamedExports(...)
`
Is there anything for me to continue use this method? Because it's a large project which I cannot change
Many thanks
The text was updated successfully, but these errors were encountered: