Next.js Discord

Discord Forum

Unable to render markdown files

Unanswered
Southeastern blueberry bee posted this in #help-forum
Open in Discord
Southeastern blueberry beeOP
I follow the instructions here https://nextjs.org/docs/14/app/building-your-application/configuring/mdx and creat a boring markdown file named page.mdx to test it. When I type the url directed to the markdown page, I got the following error

Error: ./app/projects/page.mdx.tsx
Reading source code for parsing failed
An unexpected error happened while trying to read the source code to parse: Unable to deserializate response from webpack loaders transform operation

Caused by:
- invalid type: map, expected a string at line 2 column 12

Debug info:
- Execution of <WebpackLoadersProcessedAsset as Asset>::content failed
- Execution of WebpackLoadersProcessedAsset::process failed
- Unable to deserializate response from webpack loaders transform operation
- invalid type: map, expected a string at line 2 column 12
    at source
       1 | {
         |            v
       2 +   "source": {
         |            ^
       3 |     "type": "Buffer",
       4 |     "data": [
       5 |       105,
       6 |       109,

1 Reply

Southeastern blueberry beeOP
I found if I run next dev without the --turbo option it works... But I still wonder how to make it work when there is --turbo