You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yarn add docusaurus-preset-openapi. - Plugin added to the package.json file.
yarn to add dependencies
yarn build
yarn start
Error:
[ERROR] Error: Cannot mix different versions of joi schemas
at new module.exports (/Users/lavanyakasturi/workspace/node_modules/@hapi/hoek/lib/error.js:23:19)
at module.exports (/Users/lavanyakasturi/workspace/node_modules/@hapi/hoek/lib/assert.js:21:11)
at exports.isSchema (/Users/lavanyakasturi/workspace/node_modules/joi/lib/common.js:132:5)
at internals.schema (/Users/lavanyakasturi/workspace/node_modules/joi/lib/compile.js:66:16)
at exports.schema (/Users/lavanyakasturi/workspace/node_modules/joi/lib/compile.js:17:26)
at internals.Base.$_compile (/Users/lavanyakasturi/workspace/node_modules/joi/lib/base.js:646:24)
at /Users/lavanyakasturi/workspace/node_modules/joi/lib/types/keys.js:262:92
at exports.tryWithPath (/Users/lavanyakasturi/workspace/node_modules/joi/lib/common.js:176:16)
at internals.Base.method [as keys] (/Users/lavanyakasturi/workspace/node_modules/joi/lib/types/keys.js:262:32)
at internals.Base.method [as append] (/Users/lavanyakasturi/workspace/node_modules/joi/lib/types/keys.js:191:29)
I did the following steps
npm install docusaurus-preset-openapi
- Followed https://www.npmjs.com/package/docusaurus-preset-openapiyarn add docusaurus-preset-openapi
. - Plugin added to the package.json file.yarn
to add dependenciesyarn build
yarn start
Error:
[ERROR] Error: Cannot mix different versions of joi schemas
at new module.exports (/Users/lavanyakasturi/workspace/node_modules/@hapi/hoek/lib/error.js:23:19)
at module.exports (/Users/lavanyakasturi/workspace/node_modules/@hapi/hoek/lib/assert.js:21:11)
at exports.isSchema (/Users/lavanyakasturi/workspace/node_modules/joi/lib/common.js:132:5)
at internals.schema (/Users/lavanyakasturi/workspace/node_modules/joi/lib/compile.js:66:16)
at exports.schema (/Users/lavanyakasturi/workspace/node_modules/joi/lib/compile.js:17:26)
at internals.Base.$_compile (/Users/lavanyakasturi/workspace/node_modules/joi/lib/base.js:646:24)
at /Users/lavanyakasturi/workspace/node_modules/joi/lib/types/keys.js:262:92
at exports.tryWithPath (/Users/lavanyakasturi/workspace/node_modules/joi/lib/common.js:176:16)
at internals.Base.method [as keys] (/Users/lavanyakasturi/workspace/node_modules/joi/lib/types/keys.js:262:32)
at internals.Base.method [as append] (/Users/lavanyakasturi/workspace/node_modules/joi/lib/types/keys.js:191:29)
docusaurus.config.js file:
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
// With JSDoc @type annotations, IDEs can provide config autocompletion
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'Hiro Docs',
tagline: 'Developer tools for Stacks',
url: 'https://docs.hiro.so',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'hirosystems', // Usually your GitHub org/user name.
projectName: 'docs', // Usually your repo name.
trailingSlash: false,
plugins: [
require.resolve('@cmfcmf/docusaurus-search-local'),
require.resolve('docusaurus-plugin-segment'),
['./src/_plugins/google-tag-manager', { id: 'GTM-59XXGSG' }],
["docusaurus-plugin-remote-content",
{
],
presets: [
[
'@docusaurus/preset-classic',
/** @type {import('@docusaurus/preset-classic').Options} */
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
logo: {
alt: 'Hiro developers',
src: 'img/hiro-docs-logo.svg',
srcDark: 'img/hiro-docs-logo-dark.svg',
target: '_self',
className: 'hiro-logo',
},
items: [
{
type: 'doc',
label: 'Documentation',
docId: 'intro',
position: 'right',
},
{
type: 'dropdown',
label: 'References',
position: 'right',
items: [
{
label: 'Stacks Blockchain API',
to: '/api',
},
{
label: 'Token Metadata Service',
href: 'https://token-metadata-service-dlkidjgff-blockstack.vercel.app/',
},
{
label: 'Stacks CLI',
to: '/references/stacks-cli',
},
{
label: 'Stacks.js',
href: 'https://stacks.js.org',
},
{
label: 'Stacks Connect',
href: 'https://connect.stacks.js.org',
},
{
label: 'Clarity Functions',
href: 'https://docs.stacks.co/docs/clarity/language-functions',
},
{
label: 'Clarity Keywords',
href: 'https://docs.stacks.co/docs/clarity/language-keywords',
},
{
label: 'Clarity Types',
href: 'https://docs.stacks.co/docs/clarity/language-types',
},
],
},
{
type: 'dropdown',
label: 'Learn & Build',
position: 'right',
items: [
{
type: 'doc',
label: 'Tutorials',
docId: 'tutorials',
},
{
type: 'doc',
label: 'Example Apps',
docId: 'example-apps',
},
{
type: 'doc',
label: 'Stacks.js Starters',
docId: 'stacksjs-starters',
},
};
The text was updated successfully, but these errors were encountered: