cube-js / cube

📊 Cube — The Semantic Layer for Building Data Applications
https://cube.dev
Other
17.9k stars 1.77k forks source link

Dashboard react-app failed with exit code 1 #1241

Closed jamesdavieswales closed 4 years ago

jamesdavieswales commented 4 years ago

Describe the bug When I scaffold the dashboard - it seems to install correctly however the dashboard directory installs what seems to be its dependencies are not installed.

To Reproduce Steps to reproduce the behavior:

  1. Install the cube cli
  2. generate a new app
  3. npm run dev and create a dashboard. ( ant d not realtime )
  4. Click to Launch dashboard
  5. It hangs and Dashboard react-app failed with exit code 1 shows up in the terminal
  6. Also the package.json created for the dashboard does not contain the script "start"

Expected behavior Able to run the dashboard either from the web gui or npm run start

Additional context created package.json for dashboard app

"name": "dashboard-app", "version": "0.1.0", "private": true, "dependencies": { "@ant-design/compatible": "^1.0.8", "@ant-design/icons": "^4.2.2", "@apollo/react-hooks": "^4.0.0", "@cubejs-client/core": "^0.22.1", "@cubejs-client/react": "^0.22.1", "antd": "^4.7.2", "apollo-cache-inmemory": "^1.6.6", "apollo-client": "^2.6.10", "apollo-link-schema": "^1.2.5", "graphql": "^15.3.0", "graphql-tag": "^2.11.0", "graphql-tools": "^5.0.0", "prop-types": "^15.7.2", "react": "^17.0.1", "react-beautiful-dnd": "^13.0.0", "react-dom": "^17.0.1", "react-grid-layout": "^1.1.1", "react-resizable": "^1.11.0", "react-router": "^5.2.0", "react-router-dom": "^5.2.0", "react-scripts": "3.4.4", "recharts": "^1.8.5" }, "cubejsTemplates": { "create-react-app": "0.0.1", "react-antd-dynamic": "0.0.1", "recharts-charts": "0.0.1", "antd-tables": "0.0.1", "react-credentials": "0.0.1" }

jamesdavieswales commented 4 years ago

Solved - issue was a global instance of create-react-app that was getting picked up.

Removed and cleared cache, re inited the directory and it all worked.