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

This problem is encountered when executing the yarn develop command. It is the same in both Mac and window environments. Has anyone ever encountered this problem? #66

Open
18337588370 opened this issue Jun 24, 2022 · 2 comments

Comments

@18337588370
Copy link

Your site's "gatsby-node.js" created a page with a component that doesn't exist.

The path to the missing component is "C:\Users\lishuaibing\Desktop\avatar-generator\src\pages\page_404.bs.js"

The page object passed to createPage:
{
"path": "404",
"component": "C:\Users\lishuaibing\Desktop\avatar-generator\src\pages\page_404.bs.js"
}

See the documentation for the "createPage" action — https://www.gatsbyjs.org/docs/actions/#createPage

not finished createPages - 0.043s

error Command failed with exit code 1.

@18337588370
Copy link
Author

It is like that BS cannot be generated The files in the JS type file components also cannot generate bs JS file, so the package fails. The platform environment is good

@vitrumzhu
Copy link

vitrumzhu commented Feb 18, 2024

I have same issue, and when i run 'npx patch-package' will got:

➜ avatar-generator git:(master) npx patch-package
patch-package 8.0.0
Applying patches...

ERROR Failed to apply patch for package html2canvas at path

node_modules/html2canvas

This error was caused because html2canvas has changed since you
made the patch file for it. This introduced conflicts with your patch,
just like a merge conflict in Git when separate incompatible changes are
made to the same piece of code.

Maybe this means your patch file is no longer necessary, in which case
hooray! Just delete it!

Otherwise, you need to generate a new patch file.

To generate a new one, just repeat the steps you made to generate the first
one.

i.e. manually make the appropriate file changes, then run

patch-package html2canvas

Info:
Patch file: patches/html2canvas+1.0.0-rc.5.patch
Patch was made for version: 1.0.0-rc.5
Installed version: 1.4.1


patch-package finished with 1 error(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants