robdy / robdy.io

My personal 📝 notes/blog. 🎯 Focused on PowerShell scripts and Microsoft 365. 🖱 Created using Gatsby JS.
https://robdy.io
MIT License
2 stars 0 forks source link

Migrate to gatsby-plugin-mdx v4 #710

Closed robdy closed 1 year ago

robdy commented 1 year ago

https://www.gatsbyjs.com/plugins/gatsby-plugin-mdx#migrating-from-v3-to-v4

Tasks

Error

failed Building static HTML for pages - 2.677s

 ERROR #95313 

Building static HTML failed for path "/powershell-tip-skip-get/"

See our docs page for more info on this error: https://gatsby.dev/debug-html

  39 |   if (Object.getOwnPropertySymbols) {
  40 |     var symbols = Object.getOwnPropertySymbols(object);
> 41 |     if (enumerableOnly) symbols = symbols.filter(function (sym) {
     | ^
  42 |       return Object.getOwnPropertyDescriptor(object, sym).enumerable;
  43 |     });
  44 |     keys.push.apply(keys, symbols);

  WebpackError: Element type is invalid: expected a string (for built-in components) or a class/function (for composite componen
  ts) but got: undefined.

  - esm.js:41 
    [robdy-io]/[@mdx-js]/react/dist/esm.js:41:1

  - esm.js:42 
    [robdy-io]/[@mdx-js]/react/dist/esm.js:42:1

  - esm.js:45 
    [robdy-io]/[@mdx-js]/react/dist/esm.js:45:1

  - esm.js:44 
    [robdy-io]/[@mdx-js]/react/dist/esm.js:44:1

  - esm.js:42 
    [robdy-io]/[@mdx-js]/react/dist/esm.js:42:1

  - esm.js:45 
    [robdy-io]/[@mdx-js]/react/dist/esm.js:45:1

  - esm.js:37 
    [robdy-io]/[@mdx-js]/react/dist/esm.js:37:1

  - esm.js:42 
    [robdy-io]/[@mdx-js]/react/dist/esm.js:42:1

  - esm.js:45 
    [robdy-io]/[@mdx-js]/react/dist/esm.js:45:1

  - esm.js:44 
    [robdy-io]/[@mdx-js]/react/dist/esm.js:44:1

  - esm.js:42 
    [robdy-io]/[@mdx-js]/react/dist/esm.js:42:1

  - esm.js:45 
    [robdy-io]/[@mdx-js]/react/dist/esm.js:45:1

  - esm.js:37 
    [robdy-io]/[@mdx-js]/react/dist/esm.js:37:1

  - esm.js:42 
    [robdy-io]/[@mdx-js]/react/dist/esm.js:42:1

  - esm.js:36 
    [robdy-io]/[@mdx-js]/react/dist/esm.js:36:1

  - esm.js:42 
    [robdy-io]/[@mdx-js]/react/dist/esm.js:42:1

Troubleshooting

"gatsby-plugin-feed" threw an error while running the onPostBuild lifecycle:

Cannot query field "html" on type "Mdx".

GraphQL request:9:23 8 | node { 9 | html | ^ 10 | fields { slug }

Error: Cannot query field "html" on type "Mdx". GraphQL request:9:23 8 | node { 9 | html | ^ 10 | fields { slug }

- [x] Check if the same error appears when components are removed from MDXProvider - yes
- [ ] Check if the same error appears when MDXRenderer is removed from blog-post.js - no

ERROR #11321 PLUGIN

"gatsby-plugin-feed" threw an error while running the onPostBuild lifecycle:

Cannot query field "html" on type "Mdx".

GraphQL request:9:23 8 | node { 9 | html | ^ 10 | fields { slug }

Error: Cannot query field "html" on type "Mdx". GraphQL request:9:23 8 | node { 9 | html | ^ 10 | fields { slug }

not finished onPostBuild - 0.157s

robdy commented 1 year ago

Closed in #712