Impact 2024: The Industrial Data and AI Conference for and by Users | Nominate Speakers Now for a Ch...
I have solved the BufferGeometry issue was present earlier, apparently the react-app-wired was not the latest which is why the override was not working.import React, { useEffect } from "react"import { Cognite3DViewer } from "@cognite/reveal"import { CogniteClient, CogniteAuthentication } from "@cognite/sdk"import { getToken } from "../../utils/MsGraphApiCall"import "./Models.css"function Models() { const appId = "KPI-Dev" const project = "celanese-dev" const clientId = "my-client-d" const tenantId = "my-tenant-id" const cluster = "az-eastus-1" const modelId = 7575155737800092 const revisionId = 3624517118008353 async function start() { await client.authenticate(clientId, tenantId, cluster) const viewer = new Cognite3DViewer({ sdk: client, domElement: document.querySelector("#your-element-for-viewer"), }) viewer.addModel({ modelId: modelId, revisionId: revisionId }) } const legacyInstance = new CogniteAuthentication({ project, }) // getToken() const
I’m using cognite/reveal and cognite/sdk for a project developed in react (18.x).While connecting cognite/reveal with react application I’m encountering this error:e.BufferGeometry is not a constructorTypeError: e.BufferGeometry is not a constructor I would like to know what is causing this error. code attached below:- A help to figure out the issue would be helpful.Thank you, Regards,Hariharan B P
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.