The new gatsby-plugin-mdx v4 has a lot of internal changes and new features.
Because of these internal changes, gatsby-theme-i18n fails to add the locale for .mdx files. Luckily, the fix is easy.
The error is in the gatsby-node.js file, on line 126.
Old Line:
const name = path.basename(node.fileAbsolutePath, `.mdx`)
New Line:
// v3: fileAbsolutePath, v4: contentFilePath
const name = path.basename(node.fileAbsolutePath ?? node.contentFilePath, `.mdx`)
I'll do a pull request
The new gatsby-plugin-mdx v4 has a lot of internal changes and new features.
Because of these internal changes, gatsby-theme-i18n fails to add the locale for
.mdxfiles. Luckily, the fix is easy.The error is in the
gatsby-node.jsfile, on line 126.Old Line:
New Line:
I'll do a pull request