Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading from "node:path" is not handled by plugins #773

Closed
4 tasks done
rubas opened this issue Sep 29, 2023 · 7 comments
Closed
4 tasks done

Reading from "node:path" is not handled by plugins #773

rubas opened this issue Sep 29, 2023 · 7 comments
Labels
🙋 no/question This does not need any changes 👎 phase/no Post cannot or will not be acted on

Comments

@rubas
Copy link

rubas commented Sep 29, 2023

Initial checklist

Affected packages and versions

9.0.0

Link to runnable example

No response

Steps to reproduce

We are using the plugin in our gatsby installation.

After upgrade to the version 9.0.0, we are getting build failures with from webpack.

Error Generating SSR bundle failed
Reading from "node:path" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.

Expected behavior

:sun:

Actual behavior

Reading from "node:path" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.

Runtime

No response

Package manager

No response

OS

No response

Build and bundle tools

No response

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Sep 29, 2023
@Murderlon
Copy link
Member

Hi, there is not enough information to help, you left most things we ask in the template blank. My gut feeling is your Node and/or Gatsby is outdated and should be upgraded.

@ChristianMurphy
Copy link
Member

Welcome @rubas! 👋
Sorry you ran into a spot of trouble.

As @Murderlon mentions, node:path is valid.
It is also supported by Gatsby, since gatsbyjs/gatsby#36506

Make sure you are running a recent version of Gatsby.
If you cannot upgrade Gatsby, hold on the previous version on react-markdown until you can upgrade both.

@ChristianMurphy ChristianMurphy closed this as not planned Won't fix, can't repro, duplicate, stale Sep 29, 2023
@ChristianMurphy ChristianMurphy added the 👀 no/external This makes more sense somewhere else label Sep 29, 2023
@github-actions

This comment has been minimized.

@github-actions github-actions bot added 👎 phase/no Post cannot or will not be acted on and removed 🤞 phase/open Post is being triaged manually labels Sep 29, 2023
@ChristianMurphy ChristianMurphy added 🙋 no/question This does not need any changes and removed 👀 no/external This makes more sense somewhere else labels Sep 29, 2023
@github-actions
Copy link

Hi! Thanks for reaching out! Because we treat issues as our backlog, we close issues that are questions since they don’t represent a task to be completed.

See our support docs for how and where to ask questions.

Thanks,
— bb

@rubas
Copy link
Author

rubas commented Sep 30, 2023

Thanks for the quick answers - and sorry for not adding enough information. I was in a rush 👎 👎 👎


This is not a technical issue with the library itself as node:path is valid, but one can run into issues downstream with it.

It breaks the build with current gatsby (5.12.5) with node (18.17.1). As @ChristianMurphy pointed out, Gatsby with its Webpack implementation should be able to handle it but it's not.

Probably relates to: gatsbyjs/gatsby#38516

@littlefengers
Copy link

Hey, FYI, I had the same issue with the same setup as @rubas, so I had to downgrade to 8.0.7.

There was another user on Netlify's forum that had same issue today. It seems to only happen during gatsby build though, gatsby develop does not have this issue.

@ChristianMurphy
Copy link
Member

Thanks for adding on @rubas and @littlefengers, it would be good to let the Gatsby team know so they can prioritize fixing this.
Either on the existing gatsbyjs/gatsby#38516 or generating a new issue if you believe this is a different issue than the one in the PR https://github.com/gatsbyjs/gatsby/issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙋 no/question This does not need any changes 👎 phase/no Post cannot or will not be acted on
Development

No branches or pull requests

4 participants