Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netless/fastboard giving error in next js environment #37

Open
Hassaan11 opened this issue Nov 6, 2024 · 0 comments
Open

Netless/fastboard giving error in next js environment #37

Hassaan11 opened this issue Nov 6, 2024 · 0 comments

Comments

@Hassaan11
Copy link

Hassaan11 commented Nov 6, 2024

 "@netless/fastboard": "^0.3.16",
  "@netless/window-manager": "^0.4.75",
  "next": "15.0.2",
  "react": "^18.3.1",
  "react-dom": "^18.3.1",
  "white-web-sdk": "^2.16.51"
  
import { createFastboard, createUI } from "@netless/fastboard";


const fastboardApp = await createFastboard({
      sdkConfig: {
        appIdentifier,
        region: "us-sv",
      },
      joinRoom: {
        uid: `user_${Date.now()}`,
        uuid: roomId,
        roomToken,
      },
      managerConfig: {
        cursor: true,
      },
    });
 
createUI(fastboardApp, document.getElementById("whiteboard"));

whiteboardClient.jsx:46 [fastboard] An error occurred while binding container

whiteboardClient.jsx:46 TypeError: (0 , fl.render) is not a function
at HP.refreshScreenRender (index.js:3:630089)
at HP.set (index.js:3:629643)
at _P.set (index.js:3:632443)
at Rc.updateState (index.js:3:1213547)
at Lc.onStateUpdate (index.js:3:1250381)
at Lc.putState (index.js:3:1190506)
at Lc.set (index.js:3:1238283)
at AppManager.bindMainView (index.mjs:2689:25)
at _WindowManager.bindMainView (index.mjs:18527:23)
at _WindowManager.bindContainer (index.mjs:18047:14)
at FastboardApp.bindContainer (index.mjs:437:18)
at $$self.$$.update (index.mjs:15406:17)
at update (index.mjs:321:8)
at flush (index.mjs:291:9)
at init (index.mjs:577:5)
at new Fastboard (index.mjs:15444:5)
at Object.mount (index.mjs:15463:19)
at createUI (index.mjs:15479:8)
at initializeFastboard (whiteboardClient.jsx:46:9)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant