GithubHelp home page GithubHelp logo

Comments (13)

paveltiunov avatar paveltiunov commented on May 22, 2024

Hey @sameerkhan662 ! It's very interesting issue. It seems npm related. Could you please try to install any package other than cube.js?

Also these @cubejs-client dependencies should go to dashboard-app and they will be added automatically when you add chart to dashboard in Playground.

from cube.

sameerkhan662 avatar sameerkhan662 commented on May 22, 2024

I have run npm run dev command then I am able to see 3 tabs explore dashboard and schema when I click dashboard it starts creating react-app by downloading react modules, then only I got dashboard-app created. I don't have any idea what npm i --save @cubejs-client/core npm i --save @cubejs-client/react will do since I already have frontend code ready and dashboard is automatically created by running this command when I clicked on the tab then I why it wasn't running when I was running from my console manually? Rest I also want to address one more issue is that after I create some table in explore but when I click Add to dashboard button I see some error in dashboard
Here is the pic I am sharing with the console error visible.
https://pasteboard.co/IaQmg9M.png

from cube.

sameerkhan662 avatar sameerkhan662 commented on May 22, 2024

@paveltiunov I guess these automatically import is also not working and when I inspect my package.json file. I didn't find anything added

{
  "name": "dashboard-app",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "react": "^16.8.6",
    "react-dom": "^16.8.6",
    "react-scripts": "2.1.8"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": [
    ">0.2%",
    "not dead",
    "not ie <= 11",
    "not op_mini all"
   ]
}

from cube.

sameerkhan662 avatar sameerkhan662 commented on May 22, 2024

@paveltiunov can you please help me with this problem?

from cube.

paveltiunov avatar paveltiunov commented on May 22, 2024

Hey @sameerkhan662! So seems like your dashboard app is created successfully. Could you please elaborate a little bit about moment when you click add to dashboard button? What do you see in your console?

Could you please also provide your App.js from dashboard-app/src?
Thanks!

from cube.

BMAnush avatar BMAnush commented on May 22, 2024

I have a similar issue as @sameerkhan662 . I get an error every time I click on add to dashboard -
Error: src/App.js file not found. Can't parse dashboard app. at e.value (http://localhost:4000/static/js/main.517f69b2.js:1:38696) at e. (http://localhost:4000/static/js/main.517f69b2.js:1:37521) at R (http://localhost:4000/static/js/vendors~main.52e4c5c9.chunk.js:67:9299) at Generator._invoke (http://localhost:4000/static/js/vendors~main.52e4c5c9.chunk.js:67:9087) at Generator.e.(anonymous function) [as next] (http://localhost:4000/static/js/vendors~main.52e4c5c9.chunk.js:67:9478) at n (http://localhost:4000/static/js/babel~main.af0fd698.chunk.js:1:39395) at s (http://localhost:4000/static/js/babel~main.af0fd698.chunk.js:1:39597)

from cube.

BMAnush avatar BMAnush commented on May 22, 2024

Issue Fixed in version 0.7.8 onwards. Thank you @paveltiunov

from cube.

sameerkhan662 avatar sameerkhan662 commented on May 22, 2024

@BMAnush but when this new version came?? I guess I didn't gave any version so it might have downloaded the latest one.

from cube.

BMAnush avatar BMAnush commented on May 22, 2024

@sameerkhan662 it was out few hours ago....try creating a new project and try again.

from cube.

paveltiunov avatar paveltiunov commented on May 22, 2024

Hey @sameerkhan662 ! We just recently stumbled upon these Failed to fetch issues. I'm curious are you trying to run playground on a remote server and accessing it with address other than localhost?

from cube.

sameerkhan662 avatar sameerkhan662 commented on May 22, 2024

@paveltiunov yes I have my cubejs on virtual machine which is hosted on my main local machine I am working therefore.....i am accessing from main machine at 10.10.51.19 after running cubejs since my vm ipaddress is 10.10.51.19.....though I have not tried since the update like @BMAnush is telling it's a bug and got resolved in latest version

from cube.

paveltiunov avatar paveltiunov commented on May 22, 2024

Hey @sameerkhan662 ! Gotcha. Yep. It doesn't work due to Mixed Content restrictions because codesandbox that renders dashboard uses HTTPS. So as a workaround you can run dashboard-app using npm run start from dashboard-app directory and access it on 3000 port by default. Could you please try and let me know if it works for you?

from cube.

paveltiunov avatar paveltiunov commented on May 22, 2024

Hey @sameerkhan662 ! We just recently rolled out version in which dashboard runs as part of dev server and can be accessed by public IP. Could you please upgrade and check?

from cube.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.