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
In my case there was an issue with *.md being treated as mdx, so anything with { } and without backtick, was failing with Could not parse expression with acorn: Unexpected token
However whole build was not failing and completing with success. But as a result there was missing files in storybook-static output dir. ( missing iframe.html )
You can see those errors in logs from build, but it's very easy to miss, especially that build does not report error at all.
To Reproduce
Create mdx file that has incorrect text format inside.
System
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
The reason these two lines don't work is that MDX2 parses {...} as JavaScript, so {hello} will result in "hello is undefined" while {[key: string]: string} will result in an unexpected token.
Describe the bug
In my case there was an issue with
*.md
being treated as mdx, so anything with{ }
and without backtick, was failing withCould not parse expression with acorn: Unexpected token
However whole build was not failing and completing with success. But as a result there was missing files in
storybook-static
output dir. ( missingiframe.html
)You can see those errors in logs from build, but it's very easy to miss, especially that build does not report error at all.
To Reproduce
System
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: