Skip to content

Commit 7e138e9

Browse files
committed
update the situation about the mdx plugin loader on windows, now that I have opened an issue in the nextjs github repository and also did a PR with a suggested fix
1 parent 778b0e6 commit 7e138e9

File tree

1 file changed

+3
-1
lines changed
  • app/web_development/tutorials/next-js-static-first-mdx-starterkit/mdx-plugins

1 file changed

+3
-1
lines changed

app/web_development/tutorials/next-js-static-first-mdx-starterkit/mdx-plugins/page.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,9 @@ This is when I bumped into something I assume is a bug on windows:
205205
Error: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'
206206
```
207207

208-
Confirmed, on Mac the code works 🎉 but this also confirms there is a windows bug 😭 (TODO: I did not find a ticket for this bug, so I will finish and publish the tutorial, then check again if a ticket exists, if not create one, I found a similar PR but in an other area of Next.js, the solution is probably similar: [use pathToFileUrl to make esm import()s work with absolute windows paths](https://github.com/vercel/next.js/pull/64386/files))
208+
Confirmed, on Mac the code works 🎉 but this also confirms there is a windows bug 😭
209+
210+
I have opened an [Issue (#74564)](https://github.com/vercel/next.js/issues/74564) on GitHub regarding this problem and I suggested a fix in this [PR #74565](https://github.com/vercel/next.js/pull/74565)
209211

210212
### tldr
211213

0 commit comments

Comments
 (0)