Skip to content

Netless/fastboard giving error in next js environment #37

@Hassaan11

Description

@Hassaan11
 "@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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions