-
|
I have the following setup: In React, I import MDX like this: import Demo from '../../mardown/demo.mdx'
const App = () => <Demo />
export { App }import {Comp} from '../project/src/Comp.tsx'
# Hello from markdown
<Comp />Unfortunately, when I run It builds fine when Is there a workaround to this? My project deps are: "devDependencies": {
"@mdx-js/loader": "^2.0.0",
"webpack": "^5.69.1",
"webpack-cli": "^4.9.2"
},
"dependencies": {
"react": "^17.0.2",
"react-dom": "^17.0.2"
}Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
|
You should copy files into your project. |
Beta Was this translation helpful? Give feedback.
-
|
There're some webpack directory issues you can fix with |
Beta Was this translation helpful? Give feedback.
You should copy files into your project.
This problem does not relate to MDX. It’s a question for webpack.