Error when running gatsby build with --prefix-paths
See original GitHub issueIssue Summary
Trying to use this plugin and deploy to Github Pages (using gh-pages)
Errors
[Error: ENOENT: no such file or directory, open 'public/website-gatsby/sitemap.xml'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: 'public/website-gatsby/sitemap.xml'
}
[Error: ENOENT: no such file or directory, open 'public/website-gatsby/sitemap-pages.xml'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: 'public/website-gatsby/sitemap-pages.xml'
}
To Reproduce
- add a
pathPrefix
key/value to gatsby-config.js gatsby build --prefix-paths
Any other info e.g. Why do you consider this to be a bug? What did you expect to happen instead?
Technical details:
- Gatsby Version: 2.10.0
- Node Version: 12.10.0
- OS: Mac OSX Mojave
Issue Analytics
- State:
- Created 4 years ago
- Reactions:15
- Comments:13 (3 by maintainers)
Top Results From Across the Web
How can I build my site with the —prefix-paths option?
You can set an environment variable named PREFIX_PATHS to true in Gatsby Cloud and your site will be built with the pathPrefix and/or......
Read more >gatsby-cli - npm
Start using gatsby-cli in your project by running `npm i gatsby-cli`. ... most will want to use the CLI flag ( gatsby build...
Read more >Deploy gatsby site to netlify with --prefix-paths - Stack Overflow
toml runs the command from package.json which is this: "build": "run-p build:**", "build:app": "gatsby build --prefix ...
Read more >Gatsby build : files not found / Failed to load resource
But after running gatsby build, your js plugins and fonts are all broken or missing So to fix this, first. ... Then run:...
Read more >Gatsby v4 build error MDB_PROBLEM: Unexpected problem
Gatsby v4 build error MDB_PROBLEM: Unexpected problem - txn should abort ... "gatsby build --prefix-paths", "build:gh": "npm run clean && npm run build:pp ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
any update on this bug?
@yogeshkotadiya another problem is the relative location of
sitemap.xsl
. The sitemap files are prefixed withpathPrefix
, but thesitemap.xsl
is not.