Closed eng618 closed 5 months ago
Most of this work is done on the next
branch.
The remaining pieces are as follows:
For a little more context. The defaultLayouts
node for the gatsby-plugin-mdx plugin is no longer a valid configuration. So, the below templates for Default.js and Homepage.js need to be converted into components that can be injected into every page. There are a few ways to do this, as outlined in the linked docs above.
{
resolve: `gatsby-plugin-mdx`,
options: {
extensions: mdxExtensions,
gatsbyRemarkPlugins: [
...defaultRemarkPlugins,
...gatsbyRemarkPlugins,
],
remarkPlugins,
defaultLayouts: {
default: require.resolve('./src/templates/Default.js'),
home: require.resolve('./src/templates/Homepage.js'),
...extraLayouts,
},
},
},
More observed issues in next -
@eng618 was looking at the webpack warnings and I think it may be something we can ignore. https://robertmarshall.dev/blog/fix-warn-chunk-commons-mini-css-extract-plugin-error-in-gatsby-js/
Summary
Upgrade the theme to use Gatsby v5
Justification
Keeping up with technology changes, and security compliance.