Arga - Runchise
12/29/2023, 6:59 AMTypeError: Module "file:///Users/…/node_modules/@gooddata/sdk-ui/esm/base/localization/bundles/en-US.json" needs an import assertion of type "json"
I also would like to use the React SDK but when I try to follow the steps in https://www.gooddata.com/docs/gooddata-ui/latest/learn/integrate_and_authenticate/cn_and_cloud_integration/
, the moment I use the BackendProvider
component, I encounter the error above. Am I missing something?Arga - Runchise
12/29/2023, 7:15 AMRadek Novacek
12/29/2023, 9:17 AMArga - Runchise
12/29/2023, 9:22 AMArga - Runchise
12/29/2023, 9:38 AM18.16.1
Arga - Runchise
12/29/2023, 9:49 AMassert { type: 'json' };
inside the problematic imports in node_modules but even after that, there’re different errors popping up
SyntaxError: Named export 'createSlice' not found. The requested module '@reduxjs/toolkit' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from '@reduxjs/toolkit';
const { createSlice } = pkg;
Radek Novacek
12/29/2023, 10:08 AMArga - Runchise
12/29/2023, 10:53 AMBackendProvider
component, the error I mentioned initially in this thread appearsPetr Dolejsi
01/02/2024, 9:37 AMdeclare module "*.json" {
const value: any;
export default value;
}
into typings.d.ts
file?