DataSourceInfo properties does not exist #3597

Closed
opened 2026-02-21 17:59:43 -05:00 by yindo · 0 comments
Owner

Originally created by @AndyMik90 on GitHub (May 23, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.6.8

Cloud or Self Hosted

Cloud, Self Hosted (Docker), Self Hosted (Source)

Steps to reproduce

Errors on web/app/components/datasets/documents/detail/settings/index.tsx related to DataSourceInfo types:

[{
"resource": "/Users/andremikalsen/Documents/Coding/Valma AI/valma_backend/web/app/components/datasets/documents/detail/settings/index.tsx",
"owner": "typescript",
"code": "2339",
"severity": 8,
"message": "Property 'notion_workspace_id' does not exist on type 'DataSourceInfo'.",
"source": "ts",
"startLineNumber": 39,
"startColumn": 54,
"endLineNumber": 39,
"endColumn": 73
},{
"resource": "/Users/andremikalsen/Documents/Coding/Valma AI/valma_backend/web/app/components/datasets/documents/detail/settings/index.tsx",
"owner": "typescript",
"code": "2551",
"severity": 8,
"message": "Property 'notion_page_id' does not exist on type 'DataSourceInfo'. Did you mean 'notion_page_icon'?",
"source": "ts",
"startLineNumber": 40,
"startColumn": 49,
"endLineNumber": 40,
"endColumn": 63,
"relatedInformation": [
{
"startLineNumber": 154,
"startColumn": 3,
"endLineNumber": 154,
"endColumn": 19,
"message": "'notion_page_icon' is declared here.",
"resource": "/Users/andremikalsen/Documents/Coding/Valma AI/valma_backend/web/models/datasets.ts"
}
]
},{
"resource": "/Users/andremikalsen/Documents/Coding/Valma AI/valma_backend/web/app/components/datasets/documents/detail/settings/index.tsx",
"owner": "typescript",
"code": "2339",
"severity": 8,
"message": "Property 'type' does not exist on type 'DataSourceInfo'.",
"source": "ts",
"startLineNumber": 43,
"startColumn": 46,
"endLineNumber": 43,
"endColumn": 50
},{
"resource": "/Users/andremikalsen/Documents/Coding/Valma AI/valma_backend/web/app/components/datasets/documents/detail/settings/index.tsx",
"owner": "typescript",
"code": "2322",
"severity": 8,
"message": "Type '{ workspace_id: any; page_id: any; page_name: string | undefined; page_icon: string | undefined; type: any; }' is not assignable to type 'NotionPage'.\n Type '{ workspace_id: any; page_id: any; page_name: string | undefined; page_icon: string | undefined; type: any; }' is missing the following properties from type 'DataSourceNotionPage': parent_id, is_bound, finished",
"source": "ts",
"startLineNumber": 75,
"startColumn": 27,
"endLineNumber": 75,
"endColumn": 38
},{
"resource": "/Users/andremikalsen/Documents/Coding/Valma AI/valma_backend/web/app/components/datasets/documents/detail/settings/index.tsx",
"owner": "typescript",
"code": "2322",
"severity": 8,
"message": "Type '{ id: string; name: string; size: number; mime_type: string; created_at: number; created_by: string; extension: string; }' is not assignable to type 'CustomFile'.\n Type '{ id: string; name: string; size: number; mime_type: string; created_at: number; created_by: string; extension: string; }' is missing the following properties from type 'File': lastModified, webkitRelativePath, type, arrayBuffer, and 4 more.",
"source": "ts",
"startLineNumber": 79,
"startColumn": 21,
"endLineNumber": 79,
"endColumn": 64
}]

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @AndyMik90 on GitHub (May 23, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.6.8 ### Cloud or Self Hosted Cloud, Self Hosted (Docker), Self Hosted (Source) ### Steps to reproduce Errors on web/app/components/datasets/documents/detail/settings/index.tsx related to DataSourceInfo types: [{ "resource": "/Users/andremikalsen/Documents/Coding/Valma AI/valma_backend/web/app/components/datasets/documents/detail/settings/index.tsx", "owner": "typescript", "code": "2339", "severity": 8, "message": "Property 'notion_workspace_id' does not exist on type 'DataSourceInfo'.", "source": "ts", "startLineNumber": 39, "startColumn": 54, "endLineNumber": 39, "endColumn": 73 },{ "resource": "/Users/andremikalsen/Documents/Coding/Valma AI/valma_backend/web/app/components/datasets/documents/detail/settings/index.tsx", "owner": "typescript", "code": "2551", "severity": 8, "message": "Property 'notion_page_id' does not exist on type 'DataSourceInfo'. Did you mean 'notion_page_icon'?", "source": "ts", "startLineNumber": 40, "startColumn": 49, "endLineNumber": 40, "endColumn": 63, "relatedInformation": [ { "startLineNumber": 154, "startColumn": 3, "endLineNumber": 154, "endColumn": 19, "message": "'notion_page_icon' is declared here.", "resource": "/Users/andremikalsen/Documents/Coding/Valma AI/valma_backend/web/models/datasets.ts" } ] },{ "resource": "/Users/andremikalsen/Documents/Coding/Valma AI/valma_backend/web/app/components/datasets/documents/detail/settings/index.tsx", "owner": "typescript", "code": "2339", "severity": 8, "message": "Property 'type' does not exist on type 'DataSourceInfo'.", "source": "ts", "startLineNumber": 43, "startColumn": 46, "endLineNumber": 43, "endColumn": 50 },{ "resource": "/Users/andremikalsen/Documents/Coding/Valma AI/valma_backend/web/app/components/datasets/documents/detail/settings/index.tsx", "owner": "typescript", "code": "2322", "severity": 8, "message": "Type '{ workspace_id: any; page_id: any; page_name: string | undefined; page_icon: string | undefined; type: any; }' is not assignable to type 'NotionPage'.\n Type '{ workspace_id: any; page_id: any; page_name: string | undefined; page_icon: string | undefined; type: any; }' is missing the following properties from type 'DataSourceNotionPage': parent_id, is_bound, finished", "source": "ts", "startLineNumber": 75, "startColumn": 27, "endLineNumber": 75, "endColumn": 38 },{ "resource": "/Users/andremikalsen/Documents/Coding/Valma AI/valma_backend/web/app/components/datasets/documents/detail/settings/index.tsx", "owner": "typescript", "code": "2322", "severity": 8, "message": "Type '{ id: string; name: string; size: number; mime_type: string; created_at: number; created_by: string; extension: string; }' is not assignable to type 'CustomFile'.\n Type '{ id: string; name: string; size: number; mime_type: string; created_at: number; created_by: string; extension: string; }' is missing the following properties from type 'File': lastModified, webkitRelativePath, type, arrayBuffer, and 4 more.", "source": "ts", "startLineNumber": 79, "startColumn": 21, "endLineNumber": 79, "endColumn": 64 }] ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo closed this issue 2026-02-21 17:59:43 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#3597