Comments (3)
I carefully read https://mdxjs.com/docs/troubleshooting-mdx/#unexpected-type-in-code-only-importexports-are-supported
Does it mean I cannot have a stories.mdx file and import multiple mdx contents to be combined to render, anylonger with new version?
from mdx.
Welcome @raDiesle!
Taking a step back first.
- Storybook natively supports MDX in its story format https://storybook.js.org/docs/writing-docs/mdx Don't write a custom integration, use the official one used and tested by millions of other people.
- CRA is deprecated and no longer supported by the CRA team (source: reactjs/react.dev#5487 (comment)) consider moving to Vite, Remix, or Next.
To answer your direct question,
it's likely a configuration or a content problem.
People would also need to see the MDX you are trying to render to offer better insights.
Does it mean I cannot have a stories.mdx file and import multiple mdx contents to be combined to render, anylonger with new version?
No. MDX can still import any number of external sources.
from mdx.
Ok, thanks!
Seems like renaming to .stories removes the error of Storybook, still not clear why when debugging the builders.
from mdx.
Related Issues (20)
- `@mdx-js/rollup` stops working on Vite v5 HOT 13
- created a new recma plugin `recma-mdx-escape-missing-components` HOT 11
- created a new recma plugin `recma-mdx-change-props` HOT 6
- Patch version 3.0.0 to 3.0.1 killed all admonitions HOT 2
- react hmr (fast refresh) breaks when deleting all content of a mdx file HOT 5
- Invalid hook call when using react class component in MDX HOT 4
- Useless/bad error message when forgetting to close an element HOT 3
- MDXProvider is invalid after processSync processing when {jsxImportSource: 'vue', providerImportSource: '@mdx-js/vue'} is configured. HOT 2
- Return a VFile with an appropriate extension in the path HOT 5
- Type Error on jsx type with react jsx runtime HOT 7
- Make the compiler aware of custom components HOT 2
- MDXProvider not working as expected. HOT 2
- Unable to parse custom heading ids HOT 4
- React 19 types compatibility HOT 4
- Dynamic linked heading does not interpolate link properly HOT 3
- nohoist @mdx-js/react with Next.js: Cannot read properties of null (reading 'useContext') HOT 9
- Docs: Missing explicit docs and workaround for overriding literal HTML elements in MDX HOT 14
- Docs: Improve MDX new user experience HOT 2
- Vite + Vue + MDX Components (Warn) HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mdx.