nextra: Module build failed: UnhandledSchemeError: Reading from "D:testapp.nextstaticchunks extra-page-map-.mjs" is not handled by plugins (Unhandled scheme).
D:testapp.nextstaticchunks
extra-page-map-.mjs
Module build failed: UnhandledSchemeError: Reading from "D:testapp.nextstaticchunks
extra-page-map-.mjs" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "d:" URIs.
I get an error when I try to update nextra from v2 to v3. I have made the changes while following the PR, but would appreciate support to resolve this error.
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Comments: 32
@NPJigaK try
3.0.0-alpha.7
Have a great day too! Thanks for your contributions!
@NPJigaK thank you! I will work tomorrow to make Nextra 3 compatible with windows
I attempted to modify the file path for nextra-page-map-.mjs to a relative path and also tried prefixing it with file:/// for webpack interpretation, however, the same error persisted. It’s possible that webpack is interpreting this file’s value in a different manner and attempting to read from the absolute path starting with D:, which is causing the error.
could you try to modify locally this line https://github.com/shuding/nextra/blob/e2f45057239316a6b3c4bd9db17a7dc4227b52ca/packages/nextra/src/server/loader.ts#L71
by
I guess this should fix https://github.com/shuding/nextra/issues/2424 too
thank you, I haven’t tested yet v3 on windows, will be fixed soon