Giter Site home page Giter Site logo

Comments (20)

github-actions avatar github-actions commented on May 31, 2024 3

🎉 This issue has been resolved in version 1.6.9 🎉

The release is available on:

Your semantic-release bot 📦🚀

from gatsby-plugin-robots-txt.

holm avatar holm commented on May 31, 2024 1

I am seeing the same issue after the update. The plugin documentation explicitly recommends setting sitemap to null for dev/test.

from gatsby-plugin-robots-txt.

holm avatar holm commented on May 31, 2024 1

Seems to have come from the changes in #441

from gatsby-plugin-robots-txt.

iamskok avatar iamskok commented on May 31, 2024 1

@mdreizin Please re-open the issue. The fix wasn't merged in 1.6.8 CI output

semantic-release didn't generate a new version. I think it happened because PR didn't include a commit message with the word fix.

from gatsby-plugin-robots-txt.

laurenskling avatar laurenskling commented on May 31, 2024

yes, #441 breaks the possibility to have sitemap: null as stated in the documentation

from gatsby-plugin-robots-txt.

holm avatar holm commented on May 31, 2024

cc @moonmeister

from gatsby-plugin-robots-txt.

moonmeister avatar moonmeister commented on May 31, 2024

Yup, we just need a null check and some tests probably. I'll do it if I find time.

from gatsby-plugin-robots-txt.

mdreizin avatar mdreizin commented on May 31, 2024

@moonmeister @laurenskling @eDubrovsky I am really sorry, but I don't have a free time to fix that issue. I would appreciate if someone could look at it and fix.

from gatsby-plugin-robots-txt.

moonmeister avatar moonmeister commented on May 31, 2024

@mdreizin or whomever...I'm trying to understand how you're getting an error thrown here. the lines 59-69 of this code should check for this null value and properly fill in the site url from the siteUrl metadata. So if this value is truly null then you must not be setting siteUrl. The whole point of setting the plugin config sitemap value to null is to fallback to that other value...if both are null we can provide a cleaner error but there's nothing we can do. Can you better explain what's happening or what you expect to happen? Links to your gatsby-config.js files could be helpful in fixing this bug. Thanks

from gatsby-plugin-robots-txt.

moonmeister avatar moonmeister commented on May 31, 2024

Just realized those existing if statements aren't null checks, they're checking for existing properties, null or not. I'll look at this again and see what what I can figure out.

from gatsby-plugin-robots-txt.

wezter96 avatar wezter96 commented on May 31, 2024

Has this issue been resolved?
I seem to get the same issue.

from gatsby-plugin-robots-txt.

moonmeister avatar moonmeister commented on May 31, 2024

I don't believe so.

from gatsby-plugin-robots-txt.

wezter96 avatar wezter96 commented on May 31, 2024

@moonmeister could I just reroll to an older version of the plugin and then this issue wouldn't exist?
or should i change sitemap: null to something else?

from gatsby-plugin-robots-txt.

moonmeister avatar moonmeister commented on May 31, 2024

Sure but you'll have other issues that this update solved. I may have time to check this out soon. Feel free to contribute a fix too.

from gatsby-plugin-robots-txt.

laurenskling avatar laurenskling commented on May 31, 2024

Can we please have a release of the fix? 😅

from gatsby-plugin-robots-txt.

mdreizin avatar mdreizin commented on May 31, 2024

Please check the latest version.

from gatsby-plugin-robots-txt.

Dananz avatar Dananz commented on May 31, 2024

Please check the latest version.

@mdreizin I don't think that the npm version is synced with the current repo version.

from gatsby-plugin-robots-txt.

laurenskling avatar laurenskling commented on May 31, 2024

The merge isn't released into a release, would that be possible @mdreizin ?

from gatsby-plugin-robots-txt.

eDubrovsky avatar eDubrovsky commented on May 31, 2024

@mdreizin this fix not merged into the 1.6.8 version. 😿

from gatsby-plugin-robots-txt.

CassieSloan avatar CassieSloan commented on May 31, 2024

Updated to most recent version of gatsby-plugin-robots-txt and our builds aren't running bc of the above. Any updates on when this will be fixed?

from gatsby-plugin-robots-txt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.