gregberge / smooth-doc

Ready to use documentation theme for Gatsby.
https://smooth-doc.com
MIT License
256 stars 56 forks source link

I am getting errors while installing the dependencies #89

Open xsankalp13 opened 1 year ago

xsankalp13 commented 1 year ago

ERROR #11321 PLUGIN

"gatsby-plugin-mdx" threw an error while running the preprocessSource lifecycle:

Cannot read properties of undefined (reading 'setParserPlugins')

128 | } 129 |

130 | const mdxOptions = await (0, _pluginOptions.enhanceMdxOptions)(pluginOptions, { | ^ 131 | getNode, 132 | getNodesByType, 133 | pathPrefix,

File: node_modules\smooth-doc\node_modules\gatsby-plugin-mdx\dist\gatsby-node.js:130:65

TypeError: Cannot read properties of undefined (reading 'setParserPlugins')

"gatsby-plugin-mdx" threw an error while running the preprocessSource lifecycle:

Cannot read properties of undefined (reading 'setParserPlugins')

128 | } 129 |

130 | const mdxOptions = await (0, _pluginOptions.enhanceMdxOptions)(pluginOptions, { | ^ 131 | getNode, 132 | getNodesByType, 133 | pathPrefix,

File: node_modules\smooth-doc\node_modules\gatsby-plugin-mdx\dist\gatsby-node.js:130:65

TypeError: Cannot read properties of undefined (reading 'setParserPlugins')

"gatsby-plugin-mdx" threw an error while running the preprocessSource lifecycle:

Cannot read properties of undefined (reading 'setParserPlugins')

128 | } 129 |

130 | const mdxOptions = await (0, _pluginOptions.enhanceMdxOptions)(pluginOptions, { | ^ 131 | getNode, 132 | getNodesByType, 133 | pathPrefix,

File: node_modules\smooth-doc\node_modules\gatsby-plugin-mdx\dist\gatsby-node.js:130:65

TypeError: Cannot read properties of undefined (reading 'setParserPlugins')

"gatsby-plugin-mdx" threw an error while running the preprocessSource lifecycle:

Cannot read properties of undefined (reading 'setParserPlugins')

128 | } 129 |

130 | const mdxOptions = await (0, _pluginOptions.enhanceMdxOptions)(pluginOptions, { | ^ 131 | getNode, 132 | getNodesByType, 133 | pathPrefix,

File: node_modules\smooth-doc\node_modules\gatsby-plugin-mdx\dist\gatsby-node.js:130:65

TypeError: Cannot read properties of undefined (reading 'setParserPlugins')

"gatsby-plugin-mdx" threw an error while running the preprocessSource lifecycle:

Cannot read properties of undefined (reading 'setParserPlugins')

128 | } 129 |

130 | const mdxOptions = await (0, _pluginOptions.enhanceMdxOptions)(pluginOptions, { | ^ 131 | getNode, 132 | getNodesByType, 133 | pathPrefix,

File: node_modules\smooth-doc\node_modules\gatsby-plugin-mdx\dist\gatsby-node.js:130:65

TypeError: Cannot read properties of undefined (reading 'setParserPlugins')

"gatsby-plugin-mdx" threw an error while running the preprocessSource lifecycle:

Cannot read properties of undefined (reading 'setParserPlugins')

128 | } 129 |

130 | const mdxOptions = await (0, _pluginOptions.enhanceMdxOptions)(pluginOptions, { | ^ 131 | getNode, 132 | getNodesByType, 133 | pathPrefix,

File: node_modules\smooth-doc\node_modules\gatsby-plugin-mdx\dist\gatsby-node.js:130:65

TypeError: Cannot read properties of undefined (reading 'setParserPlugins')

"gatsby-plugin-mdx" threw an error while running the preprocessSource lifecycle:

Cannot read properties of undefined (reading 'setParserPlugins')

128 | } 129 |

130 | const mdxOptions = await (0, _pluginOptions.enhanceMdxOptions)(pluginOptions, { | ^ 131 | getNode, 132 | getNodesByType, 133 | pathPrefix,

File: node_modules\smooth-doc\node_modules\gatsby-plugin-mdx\dist\gatsby-node.js:130:65

TypeError: Cannot read properties of undefined (reading 'setParserPlugins')

"gatsby-plugin-mdx" threw an error while running the preprocessSource lifecycle:

Cannot read properties of undefined (reading 'setParserPlugins')

128 | } 129 |

130 | const mdxOptions = await (0, _pluginOptions.enhanceMdxOptions)(pluginOptions, { | ^ 131 | getNode, 132 | getNodesByType, 133 | pathPrefix,

File: node_modules\smooth-doc\node_modules\gatsby-plugin-mdx\dist\gatsby-node.js:130:65

TypeError: Cannot read properties of undefined (reading 'setParserPlugins')

"gatsby-plugin-mdx" threw an error while running the preprocessSource lifecycle:

Cannot read properties of undefined (reading 'setParserPlugins')

128 | } 129 |

130 | const mdxOptions = await (0, _pluginOptions.enhanceMdxOptions)(pluginOptions, { | ^ 131 | getNode, 132 | getNodesByType, 133 | pathPrefix,

File: node_modules\smooth-doc\node_modules\gatsby-plugin-mdx\dist\gatsby-node.js:130:65

TypeError: Cannot read properties of undefined (reading 'setParserPlugins')

There was an error in your GraphQL query:

Field "fields" is not defined by type MdxFilterInput.

File: node_modules\smooth-doc\src\components\SideNav.js:9:22

GraphQLError: Field "fields" is not defined by type MdxFilterInput.

There was an error in your GraphQL query:

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

If you don't expect "fields" to exist on the type "Mdx" it is most likely a typo. However, if you expect "fields" to exist there are a couple of solutions to common problems:

It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content".
Visit our docs to learn how you can define the schema for "Mdx": https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions

File: node_modules\smooth-doc\src\templates\page.js:6:7

ERROR #85923 GRAPHQL

There was an error in your GraphQL query:

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

If you don't expect "fields" to exist on the type "Mdx" it is most likely a typo. However, if you expect "fields" to exist there are a couple of solutions to common problems:

It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content".
Visit our docs to learn how you can define the schema for "Mdx": https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions

File: node_modules\smooth-doc\src\templates\doc.js:6:7

failed extract queries from components - 0.956s success write out requires - 0.018s success run static queries - 0.075s - 5/5 66.55/s success run page queries - 0.035s - 1/1 28.47/s

ERROR #11321 PLUGIN

"gatsby-plugin-mdx" threw an error while running the onCreateWebpackConfig lifecycle:

Cannot read properties of undefined (reading 'setParserPlugins')

40 | }, pluginOptions) => { 41 | const options = (0, _pluginOptions.defaultOptions)(pluginOptions);

42 | const mdxOptions = await (0, _pluginOptions.enhanceMdxOptions)(pluginOptions, { | ^ 43 | getNode, 44 | getNodesByType, 45 | pathPrefix,

File: node_modules\smooth-doc\node_modules\gatsby-plugin-mdx\dist\gatsby-node.js:42:65

TypeError: Cannot read properties of undefined (reading 'setParserPlugins')

warn isModuleDeclaration has been deprecated, please migrate to isImportOrExportDeclaration at isModuleDeclaration (C:\Users\salve\OneDrive\Desktop\Kavach Documentation\kavach-docs\node_modules\@babel\types\lib\validators\generated\index.js:3940:35) at PluginPass.Program (C:\Users\salve\OneDrive\Desktop\Kavach Documentation\kavach-docs\node_modules\babel-plugin-lodash\lib\index.js:102:44)

ERROR

error:0308010C:digital envelope routines::unsupported

Error: error:0308010C:digital envelope routines::unsupported

I am getting this error

I have tried

--legacy-peer-deps and --force

namanlp commented 1 year ago

Hi there, how did you create the project?