Hi Team, my project is configured to use node v14...
# gooddata-ui
z
Hi Team, my project is configured to use node v14 & typescript v3.9.7due to certain limitations i can't update that now. so what i have check from documentation Good Data React sdk v8.7 is compatible with my specification. I am following a simple example which uses backend from @gooddata/sdk-backend-tiger. their are two problems i am facing first is when i build the project and run it i got an exception.
Copy code
1):  Uncaught TypeError: Cannot read properties of undefined (reading 'YEAR')
    at ./node_modules/@gooddata/sdk-backend-tiger/dist/convertors/fromBackend/dateGranularityConversions.js (dateGranularityConversions.ts:67:1)
    at __webpack_require__ (bootstrap:789:1)
    at fn (bootstrap:150:1)
    at ./node_modules/@gooddata/sdk-backend-tiger/dist/convertors/fromBackend/afm/result.js (result.ts:21:1)
    at __webpack_require__ (bootstrap:789:1)
    at fn (bootstrap:150:1)
    at ./node_modules/@gooddata/sdk-backend-tiger/dist/backend/workspace/execution/executionResult.js (executionResult.ts:21:1)
    at __webpack_require__ (bootstrap:789:1)
    at fn (bootstrap:150:1)
    at ./node_modules/@gooddata/sdk-backend-tiger/dist/backend/workspace/execution/preparedExecution.js (preparedExecution.ts:22:1)
    at __webpack_require__ (bootstrap:789:1)
    at fn (bootstrap:150:1)
    at ./node_modules/@gooddata/sdk-backend-tiger/dist/backend/workspace/execution/executionFactory.js (executionFactory.ts:5:1)
    at __webpack_require__ (bootstrap:789:1)
    at fn (bootstrap:150:1)
    at ./node_modules/@gooddata/sdk-backend-tiger/dist/backend/workspace/index.js (index.ts:21:1)
    at __webpack_require__ (bootstrap:789:1)
    at fn (bootstrap:150:1)
    at ./node_modules/@gooddata/sdk-backend-tiger/dist/backend/index.js (index.ts:29:1)
    at __webpack_require__ (bootstrap:789:1)
    at fn (bootstrap:150:1)
    at ./node_modules/@gooddata/sdk-backend-tiger/dist/index.js (index.ts:15:1)
    at __webpack_require__ (bootstrap:789:1)
    at fn (bootstrap:150:1)
    at Module.<anonymous> (K2Layout.tsx:20:1)
    at ./src/containers/app/views/MainApp.tsx (MainApp.tsx:62:1)
    at __webpack_require__ (bootstrap:789:1)
    at fn (bootstrap:150:1)
    at Module.<anonymous> (index.tsx:37:1)
    at ./src/routes/index.tsx (index.tsx:77:1)
    at __webpack_require__ (bootstrap:789:1)
    at fn (bootstrap:150:1)
    at Module.<anonymous> (Auth0Wrapper.tsx:51:1)
    at ./src/containers/app/views/auth/K2SubscriptionView.tsx (K2SubscriptionView.tsx:475:1)
    at __webpack_require__ (bootstrap:789:1)
    at fn (bootstrap:150:1)
    at Module.<anonymous> (SubscriptionPicker.tsx:67:1)
    at ./src/containers/app/views/auth/SubscriptionsHandler.tsx (SubscriptionsHandler.tsx:23:1)
    at __webpack_require__ (bootstrap:789:1)
    at fn (bootstrap:150:1)
    at Module.<anonymous> (App.css:45:1)
    at ./src/App.tsx (App.tsx:20:1)
    at __webpack_require__ (bootstrap:789:1)
    at fn (bootstrap:150:1)
    at Module.<anonymous> (useWindowWidth.ts:3:1)
    at ./src/index.tsx (index.tsx:36:1)
    at __webpack_require__ (bootstrap:789:1)
    at fn (bootstrap:150:1)
    at 1 (unloadListener.ts:1:1)
    at __webpack_require__ (bootstrap:789:1)
2): second issue is i can't install @gooddata/sdk-ui-dashboard@8.*, it tries to rename something in node_modules which gives permission exception. v9 is easily installable but i can't use that because it is not compatible.
r
Heya Zeeshan, Radek from the GD Technical support team here - I'll look into this and come back to you 🙂
z
appreciate that will be waiting for your response,
r
Hi Zeeshan, so the main problem that you're going to encounter is the fact that the UI SDK is only compatible with GD Cloud starting with version 8.10 - anything below that won't work when paired with a Cloud environment. This is mostly due to the fact that GD Cloud was officially introduced in 2022, and older versions weren't built with Cloud compatibility in mind (or made compatible after the fact).
✅ 1