Heya! I'm working on upgrading our Storybook from 7.0.0-alpha.57 to 7.0.0-beta.50 and found the following issue:
10:14:55 PM [vite] Internal server error: Parse error @:330:18
Plugin: storybook:inject-export-order-plugin
File: /Users/emma/Code/Kitsu/web/src/components/Button/Button.stories.mdx
at parse (/Users/emma/Code/Kitsu/web/node_modules/es-module-lexer/dist/lexer.cjs:1:402)
at TransformContext.transform (/Users/emma/Code/Kitsu/web/node_modules/@storybook/builder-vite/dist/index.js:50:33)
at Object.transform (file:///Users/emma/Code/Kitsu/web/node_modules/vite/dist/node/chunks/dep-67e7f8ab.js:40228:44)
at async loadAndTransform (file:///Users/emma/Code/Kitsu/web/node_modules/vite/dist/node/chunks/dep-67e7f8ab.js:36615:29) (x2)
I was able to bisect down to which release broke this, and it's specifically beta.7. I found a similar issue in discord search, but that was due to the .js extensions instead of .jsx -- since this is mdx I don't think that's the issue here.
The file (Button.stories.mdx) can be viewed here: https://github.com/hummingbird-me/kitsu-web/blob/react/src/components/Button/Button.stories.mdx
Perhaps notably the file is not 330 lines long, despite the parse error claiming to be on line 330 🤔