[PR #192] [MERGED] Fix Dev Startup Errors #180

Closed
opened 2026-02-23 17:19:56 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anythingllm-docs/pull/192
Author: @angelplusultra
Created: 9/16/2025
Status: Merged
Merged: 9/16/2025
Merged by: @timothycarambat

Base: mainHead: 191-fix-dev-startup-errors


📝 Commits (5)

  • d71c9ae fix: standardize iframe attributes across documentation
  • 524d55d fix: Fixed Warning: Card: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead. console warning by using modern default props implementation.
  • bf917c9 fix: Fixed
  • 83d889d refactor: update Card component implementation across multiple MDX files to use modern default parameters instead of defaultProps to supress warning
  • 419c2ae Introduce reusable global Card component to replace file scoped Card components

📊 Changes

31 files changed (+70 additions, -287 deletions)

View changed files

components/card.tsx (+17 -0)
📝 pages/_meta.json (+1 -1)
📝 pages/agent-flows/blocks/_meta.json (+2 -2)
📝 pages/agent-flows/blocks/intro.mdx (+1 -12)
📝 pages/agent/overview.mdx (+1 -12)
📝 pages/agent/setup.mdx (+3 -3)
📝 pages/beta-preview/active-features/computer-use.mdx (+1 -8)
📝 pages/beta-preview/active-features/live-document-sync.mdx (+1 -8)
📝 pages/beta-preview/overview.mdx (+1 -12)
📝 pages/changelog/overview.mdx (+1 -12)
📝 pages/changelog/v1.7.2.mdx (+3 -3)
📝 pages/contribute.mdx (+1 -12)
📝 pages/features/all-features.mdx (+1 -12)
📝 pages/features/embedding-models.mdx (+1 -12)
📝 pages/features/language-models.mdx (+1 -12)
📝 pages/features/transcription-models.mdx (+1 -12)
📝 pages/features/vector-databases.mdx (+1 -12)
📝 pages/import-custom-models.mdx (+6 -6)
📝 pages/index.mdx (+1 -12)
📝 pages/installation-desktop/macos.mdx (+1 -12)

...and 11 more files

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style

Relevant Issues

resolves #191

What is in this change?

This PR includes some changes to code that were causing console errors and warning on dev startup with yarn dev

  1. Fixes the incorrect property usage in _meta.json to hide the page from navigation for intro, default-blocks and community-hub

  2. Fixes deprecated usage of defaultProps for the Nextra Card component across all page files.

Additional Information

These changes should suppress warnings that appear similar to the following:

[nextra-theme-docs] Error validating _meta.json file for "community-hub" property.

Invalid input
Invalid input
Invalid input
Expected string, received object
Required. Path: "items"
Invalid literal value, expected "menu". Path: "type"
Invalid literal value, expected "separator". Path: "type"
Invalid enum value. Expected 'page' | 'doc', received 'hidden'. Path: "type"
[nextra-theme-docs] Error validating _meta.json file for "intro" property.

Unrecognized key(s) in object: 'hidden'. Path: "theme"
[nextra-theme-docs] Error validating _meta.json file for "default-blocks" property.

Unrecognized key(s) in object: 'hidden'. Path: "theme"
Warning: Card: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
    at Card (webpack-internal:///./node_modules/nextra/dist/components/cards.js:37:3)
    at div
    at _Cards (webpack-internal:///./node_modules/nextra/dist/components/cards.js:105:3)
    at MDXContent (webpack-internal:///./pages/index.mdx:206:114)
    at MDXProvider (file:///Users/macfitton/coding/mintplex-labs/anythingllm-docs/node_modules/@mdx-js/react/lib/index.js:90:30)
    at main
    at article
    at Body (webpack-internal:///./node_modules/nextra-theme-docs/dist/index.js:2918:3)
    at ActiveAnchorProvider (webpack-internal:///./node_modules/nextra-theme-docs/dist/index.js:156:3)
    at div
    at div
    at InnerLayout (webpack-internal:///./node_modules/nextra-theme-docs/dist/index.js:2969:3)
    at m (/Users/macfitton/coding/mintplex-labs/anythingllm-docs/node_modules/next-themes/dist/index.js:1:310)
    at exports.ThemeProvider (/Users/macfitton/coding/mintplex-labs/anythingllm-docs/node_modules/next-themes/dist/index.js:1:3611)
    at ConfigProvider (webpack-internal:///./node_modules/nextra-theme-docs/dist/index.js:262:3)
    at Layout (webpack-internal:///./node_modules/nextra-theme-docs/dist/index.js:3088:5)
    at Nextra (webpack-internal:///./node_modules/nextra/dist/layout.js:17:3)
    at MyApp (webpack-internal:///./pages/_app.tsx:11:18)
    at StyleRegistry (/Users/macfitton/coding/mintplex-labs/anythingllm-docs/node_modules/styled-jsx/dist/index/index.js:449:36)
    at eU (/Users/macfitton/coding/mintplex-labs/anythingllm-docs/node_modules/next/dist/compiled/next-server/pages.runtime.dev.js:8:20489)
    at eH (/Users/macfitton/coding/mintplex-labs/anythingllm-docs/node_modules/next/dist/compiled/next-server/pages.runtime.dev.js:17:1788)
    at eJ (/Users/macfitton/coding/mintplex-labs/anythingllm-docs/node_modules/next/dist/compiled/next-server/pages.runtime.dev.js:17:3091)
    at div
    at e9 (/Users/macfitton/coding/mintplex-labs/anythingllm-docs/node_modules/next/dist/compiled/next-server/pages.runtime.dev.js:26:761)



Validations

  • Ensured updated documentation pass spell check
  • Updated or added relevant links as needed
  • Reviewed the changes for clarity and accuracy
  • Successfully ran the code locally without encountering errors

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anythingllm-docs/pull/192 **Author:** [@angelplusultra](https://github.com/angelplusultra) **Created:** 9/16/2025 **Status:** ✅ Merged **Merged:** 9/16/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `main` ← **Head:** `191-fix-dev-startup-errors` --- ### 📝 Commits (5) - [`d71c9ae`](https://github.com/Mintplex-Labs/anythingllm-docs/commit/d71c9ae08191308779ab424923601904841fdd4f) fix: standardize iframe attributes across documentation - [`524d55d`](https://github.com/Mintplex-Labs/anythingllm-docs/commit/524d55d0cf54257c62a9431e57f213c72dd96114) fix: Fixed `Warning: Card: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.` console warning by using modern default props implementation. - [`bf917c9`](https://github.com/Mintplex-Labs/anythingllm-docs/commit/bf917c9e3bfc50ee7bcdd1b7f9483cb3e4bd1438) fix: Fixed - [`83d889d`](https://github.com/Mintplex-Labs/anythingllm-docs/commit/83d889d2f64af5e87339c6785b184069f9859d46) refactor: update Card component implementation across multiple MDX files to use modern default parameters instead of defaultProps to supress warning - [`419c2ae`](https://github.com/Mintplex-Labs/anythingllm-docs/commit/419c2ae19070a479ad02e2200c8d60a86353434d) Introduce reusable global Card component to replace file scoped Card components ### 📊 Changes **31 files changed** (+70 additions, -287 deletions) <details> <summary>View changed files</summary> ➕ `components/card.tsx` (+17 -0) 📝 `pages/_meta.json` (+1 -1) 📝 `pages/agent-flows/blocks/_meta.json` (+2 -2) 📝 `pages/agent-flows/blocks/intro.mdx` (+1 -12) 📝 `pages/agent/overview.mdx` (+1 -12) 📝 `pages/agent/setup.mdx` (+3 -3) 📝 `pages/beta-preview/active-features/computer-use.mdx` (+1 -8) 📝 `pages/beta-preview/active-features/live-document-sync.mdx` (+1 -8) 📝 `pages/beta-preview/overview.mdx` (+1 -12) 📝 `pages/changelog/overview.mdx` (+1 -12) 📝 `pages/changelog/v1.7.2.mdx` (+3 -3) 📝 `pages/contribute.mdx` (+1 -12) 📝 `pages/features/all-features.mdx` (+1 -12) 📝 `pages/features/embedding-models.mdx` (+1 -12) 📝 `pages/features/language-models.mdx` (+1 -12) 📝 `pages/features/transcription-models.mdx` (+1 -12) 📝 `pages/features/vector-databases.mdx` (+1 -12) 📝 `pages/import-custom-models.mdx` (+6 -6) 📝 `pages/index.mdx` (+1 -12) 📝 `pages/installation-desktop/macos.mdx` (+1 -12) _...and 11 more files_ </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [ ] ✨ feat - [x] 🐛 fix - [x] ♻️ refactor - [ ] 💄 style ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #191 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the documentation site. --> This PR includes some changes to code that were causing console errors and warning on dev startup with `yarn dev` 1. Fixes the incorrect property usage in `_meta.json` to hide the page from navigation for `intro`, `default-blocks` and `community-hub` 2. Fixes deprecated usage of `defaultProps` for the Nextra `Card` component across all page files. ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> These changes should suppress warnings that appear similar to the following: ``` [nextra-theme-docs] Error validating _meta.json file for "community-hub" property. Invalid input Invalid input Invalid input Expected string, received object Required. Path: "items" Invalid literal value, expected "menu". Path: "type" Invalid literal value, expected "separator". Path: "type" Invalid enum value. Expected 'page' | 'doc', received 'hidden'. Path: "type" [nextra-theme-docs] Error validating _meta.json file for "intro" property. Unrecognized key(s) in object: 'hidden'. Path: "theme" [nextra-theme-docs] Error validating _meta.json file for "default-blocks" property. Unrecognized key(s) in object: 'hidden'. Path: "theme" Warning: Card: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead. at Card (webpack-internal:///./node_modules/nextra/dist/components/cards.js:37:3) at div at _Cards (webpack-internal:///./node_modules/nextra/dist/components/cards.js:105:3) at MDXContent (webpack-internal:///./pages/index.mdx:206:114) at MDXProvider (file:///Users/macfitton/coding/mintplex-labs/anythingllm-docs/node_modules/@mdx-js/react/lib/index.js:90:30) at main at article at Body (webpack-internal:///./node_modules/nextra-theme-docs/dist/index.js:2918:3) at ActiveAnchorProvider (webpack-internal:///./node_modules/nextra-theme-docs/dist/index.js:156:3) at div at div at InnerLayout (webpack-internal:///./node_modules/nextra-theme-docs/dist/index.js:2969:3) at m (/Users/macfitton/coding/mintplex-labs/anythingllm-docs/node_modules/next-themes/dist/index.js:1:310) at exports.ThemeProvider (/Users/macfitton/coding/mintplex-labs/anythingllm-docs/node_modules/next-themes/dist/index.js:1:3611) at ConfigProvider (webpack-internal:///./node_modules/nextra-theme-docs/dist/index.js:262:3) at Layout (webpack-internal:///./node_modules/nextra-theme-docs/dist/index.js:3088:5) at Nextra (webpack-internal:///./node_modules/nextra/dist/layout.js:17:3) at MyApp (webpack-internal:///./pages/_app.tsx:11:18) at StyleRegistry (/Users/macfitton/coding/mintplex-labs/anythingllm-docs/node_modules/styled-jsx/dist/index/index.js:449:36) at eU (/Users/macfitton/coding/mintplex-labs/anythingllm-docs/node_modules/next/dist/compiled/next-server/pages.runtime.dev.js:8:20489) at eH (/Users/macfitton/coding/mintplex-labs/anythingllm-docs/node_modules/next/dist/compiled/next-server/pages.runtime.dev.js:17:1788) at eJ (/Users/macfitton/coding/mintplex-labs/anythingllm-docs/node_modules/next/dist/compiled/next-server/pages.runtime.dev.js:17:3091) at div at e9 (/Users/macfitton/coding/mintplex-labs/anythingllm-docs/node_modules/next/dist/compiled/next-server/pages.runtime.dev.js:26:761) ``` ### Validations <!-- All of the applicable items should be checked. --> - [x] Ensured updated documentation pass spell check - [x] Updated or added relevant links as needed - [x] Reviewed the changes for clarity and accuracy - [x] Successfully ran the code locally without encountering errors --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-23 17:19:56 -05:00
yindo closed this issue 2026-02-23 17:19:56 -05:00
yindo changed title from [PR #192] [MERGED] Fix Dev Startup Errors to [PR #192] [MERGED] Fix Dev Startup Errors 2026-06-05 15:22:39 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anythingllm-docs#180