cube-js / cube

📊 Cube — Universal semantic layer platform for AI, BI, spreadsheets, and embedded analytics
https://cube.dev
Other
17.97k stars 1.78k forks source link

The module @cubejs-client_react.js does not provide an export named 'isQueryPresent' #6707

Open SoozaV opened 1 year ago

SoozaV commented 1 year ago

Hi, I'm following the steps of this guide: https://cube.dev/blog/react-dashboard-with-graphql

Everything is fine except that, when I navigate to explore page I get this error: SyntaxError: The requested module '/node_modules/.vite/deps/@cubejs-client_react.js?v=367a0cec' does not provide an export named 'isQueryPresent' (at ExplorePage.tsx:8:10)

I'm importing the function as usual: image and then using it in the Add to dashboard button: disabled={!isQueryPresent(finalVizState.query || {})}

VSCode is not giving any error, and I can see the exported method, so I don't know what's happening, any ideas? image

Cube JS core and react versions:

"@cubejs-client/core": "0.32.22",
"@cubejs-client/react": "0.32.22",
iabhitech commented 10 months ago

Same issue on "@cubejs-client/react": "^0.34.37",

iabhitech commented 10 months ago

@SoozaV Have you found any solution? Please guide anyone.