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

Migrate to gatsby-plugin-image #190

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

lindapaiste
Copy link

  • Remove deprecated gatsby-image and migrate to replacement gatsby-plugin-image
  • Convert GraphQL queries and the PreviewCompatibleImage component to the new syntax using the migration guide and the codemod npx gatsby-codemods gatsby-plugin-image
  • Fixes Frontend alignment issues #18
  • No longer stretches out images above their size when in mobile view. Now they are capped at 240px and centered.
  • Resize brand logos to a 2:1 aspect ratio so that the horizontal logos are more balanced with the square ones.

@lindapaiste
Copy link
Author

...and...the build preview failed 😭

The most important lines in the logs seem to be these:

3:42:44 PM: Attempting node version 'v10.19.0' from .nvmrc
3:42:45 PM: Downloading and installing node v10.19.0...
3:43:34 PM: error [email protected]: The engine "node" is incompatible with this module. Expected version ">=12".
3:43:34 PM: error Found incompatible module

I was running locally with Node v14.19.0. I will try modifying some versions in .nvmrc and yarn.lock and see if I can get the checks to pass. Apologies if I clutter your notifications with a bajillion commits.

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.

Frontend alignment issues
1 participant