簡體   English   中英

Cube.js React Hook React.useCallback 缺少一個依賴項:'pivotConfig'。 +

[英]Cube.js React Hook React.useCallback has a missing dependency: 'pivotConfig'. +

我一直在嘗試使用 windows 10 和 Mysql 版本 8 使用 Cube.js 創建一個簡單的儀表板。

我最初嘗試了一個 Js 后端,安裝了幾天,然后嘗試了 docker 安裝,但在幾個小時的錯誤消息后退出,現在又回到了 node.js 后端。 我的猜測是 Cube.js 不再更新或維護。

使用

npx cubejs-cli 創建 ihatecubejs -d 為什么amIstilltrying

我得到:

 npm WARN ERESOLVE overriding peer dependency npm WARN While resolving: dashboard-app@0.1.0 npm WARN Found: react@17.0.2 npm WARN node_modules/react npm WARN peer react@"*" from @testing-library/react@11.2.7 npm WARN node_modules/@testing-library/react npm WARN @testing-library/react@"^11.2.7" from the root project npm WARN 6 more (react-dom, react-scripts, the root project, ...) npm WARN npm WARN Could not resolve dependency: npm WARN peer react@"17.0.2" from react-dom@17.0.2 npm WARN node_modules/react-dom npm WARN peer react-dom@"*" from @testing-library/react@11.2.7 npm WARN node_modules/@testing-library/react npm WARN 3 more (the root project, @ant-design/compatible, antd) npm WARN ERESOLVE overriding peer dependency npm WARN While resolving: dashboard-app@0.1.0 npm WARN Found: react@17.0.2 npm WARN node_modules/react npm WARN peer react@"*" from @testing-library/react@11.2.7 npm WARN node_modules/@testing-library/react npm WARN @testing-library/react@"^11.2.7" from the root project npm WARN 6 more (react-dom, react-scripts, the root project, ...) npm WARN npm WARN Could not resolve dependency: npm WARN peer react@"17.0.2" from react-dom@17.0.2 npm WARN node_modules/react-dom npm WARN peer react-dom@"*" from @testing-library/react@11.2.7 npm WARN node_modules/@testing-library/react npm WARN 3 more (the root project, @ant-design/compatible, antd) npm WARN ERESOLVE overriding peer dependency npm WARN While resolving: dashboard-app@0.1.0 npm WARN Found: react@17.0.2 npm WARN node_modules/react npm WARN peer react@"*" from @testing-library/react@11.2.7 npm WARN node_modules/@testing-library/react npm WARN @testing-library/react@"^11.2.7" from the root project npm WARN 6 more (react-dom, react-scripts, the root project, ...) npm WARN npm WARN Could not resolve dependency: npm WARN peer react@"17.0.2" from react-dom@17.0.2 npm WARN node_modules/react-dom npm WARN peer react-dom@"*" from @testing-library/react@11.2.7 npm WARN node_modules/@testing-library/react npm WARN 3 more (the root project, @ant-design/compatible, antd) npm WARN deprecated core-js@1.2.7: core-js@<3.3 is no longer maintained and not

然后:

Compile Failed-
./src/components/Header.js
Attempted import error: 'withRouter' is not exported from 'react-router'.

固定為:

npm install react-router@5

npm install react-router-dom@5

然后是一噸被忽略的警告消息(一個被棄用的 UUID(版本 3.4)——雖然它沒有安裝)。

在項目目錄中運行 npm 啟動開發打開開發面板並運行“生成方案”為“cube.js_test\ihatecubejs\schema”文件夾中我的 2 個連接的數據庫中的每一個創建一個方案,但數據庫中沒有任何變量被攜帶超過。

我在架構中手動輸入了一些變量,並在開發面板中顯示了一個圖表。 錯誤地生成了一個圖表,並且我指定我想要訂購時間 - 這會引發錯誤但在刷新時有效。 任何。

現在使用一個圖表創建儀表板應用程序:

錯誤:““類別”不是注冊比例。” 或者

裝載輪確實燒壞了

控制台說:

編譯時帶有警告。

src\components\ChartRenderer.js 第 78:5 行:React Hook React.useCallback 缺少依賴項:'pivotConfig'。 要么包含它,要么移除依賴數組 react-hooks/exhaustive-deps

但是 pivotConfig 似乎是在 /src 文件夾的 DashboardPage.js 中定義的。

我想不通,如果我再花時間在這上面,我會嘔吐的。 任何幫助深表感謝。

我來自 Cube 開發團隊。 很遺憾聽到您對 Cube 有過這樣的體驗。

前兩個預設儀表板似乎已經修復。 至於其他的,很快就會修好。 此外,看起來我們之前沒有機會檢查它如何正確地用於 Windows。

我建議在 Docker 中使用 Cube。 有關詳細信息,請參閱此博客文章 此外,還有一個遷移指南。

或者,您可以嘗試 Cube Cloud。 它可以免費用於測試目的,並且可能比使用 Docker 更容易。

隨時加入我們的 Slack ,您可以更快地獲得幫助。 盡管現在我們更專注於 Docker 和雲解決方案,但 Cube 肯定會得到維護。

至於儀表板,它們似乎是固定的,我今天已經嘗試過了。 至於多維數據集,他們仍然維護它。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM