问题描述
我是mongodb和大数据系统的初学者。
我尝试为我在本地开发的应用程序开发一个仪表板。通过遵循以下blog来使用cubejs和mongodb for BI:
我通过以下方式安装cubejs:npm install -g cubejs-cli
之后,我通过以下方式创建后端cubejs项目:cubejs create mongo-tutorial -d mongobi
在通过cd mongo-tutorial
移到项目文件夹之后,当我尝试通过cubejs generate -t zips
生成架构时,出现以下错误的输出结果:
(node:28896) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:28896) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency
- Fetching DB schema
- Generating schema files
Cube.js Error ---------------------------------------
@cubejs-backend/schema-compiler/scaffolding/ScaffoldingTemplate dependency not found. Please run this command from project directory.
Need some help? -------------------------------------
Ask this question in Cube.js Slack: https://slack.cube.dev
Post an issue: https://github.com/cube-js/cube.js/issues
CUBEJS_DB_HOST=localhost
CUBEJS_DB_NAME=test
CUBEJS_DB_PORT=3307
CUBEJS_DB_TYPE=mongobi
CUBEJS_API_SECRET=62d555e33c215f1550d000e9b63755eaab68ffe7930545ce02775d315bbb2673ea65fdaf1d59f3c5653814367b25110ce2e214d07cb7b47958c58c8ffc0fb3
我通过以下方式导入数据:mongoimport.exe --db test --collection zips –file zips.json
该数据库是从以下网站下载的:https://media.mongodb.org/zips.json
我的指南针工具的屏幕截图:
enter image description here
我的mongo bi的屏幕截图:
enter image description here
解决方法
这是一个错误。我们已经为v0.23.10
版本准备了修复程序。请升级您的Cube.js CLI。谢谢。