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

Fix gatsby 4 bug & bump peer dependency #26

Merged
merged 2 commits into from
Jan 24, 2023

Conversation

Odin94
Copy link
Contributor

@Odin94 Odin94 commented Oct 25, 2022

In Gatsby 4 there's a "GATSBY_IPFS_PATH_PREFIX" in an error logging string that gets replaced in a way that breaks the string and causes an error.

That error is logged in the console as Uncaught SyntaxError: missing ) after argument list

This is the (built & replaced) code that caused the error:

image

Not replacing the "GATSBY_IPFS_PATH_PREFIX" if the " is escaped with \ fixes the issue.

This is the (built & replaced) code after the fix is applied:

image

The fixed bug is mentioned in this issue: #25

In Gatsby 4 there's a "__GATSBY_IPFS_PATH_PREFIX__" in an error logging string that gets replaced in a way that breaks the string and causes an error.
Not replacing the \"__GATSBY_IPFS_PATH_PREFIX__" if the " is escaped with \ fixes the issue
Now that the bug is fixed, gatsby-plugin-ipfs should be compatible with gatsby 4
@Odin94 Odin94 mentioned this pull request Oct 25, 2022
@parkan
Copy link
Collaborator

parkan commented Jan 18, 2023

@Odin94 sorry we didn't see this PR prior to opening #27 -- I think there is an additional fix in there that is needed (at least in our experience), would you mind taking a look? I will try to summon @satazor to review either PR for merge, no preference on our end.

@parkan parkan merged commit 1187387 into moxystudio:master Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants