@snorres wrote:
I am trying to use GoJS with Nextjs.
The DiagramButttons is shown on the page,but canvas with the diagram does not show.
I tried it with nex/dynamic but still does not work.import React, { Component } from 'react' // import GojsDiagram from 'react-gojs'; import dynamic from 'next/dynamic' // import MyDiagram from './gojs/MyDiagram'; class Index extends Component { render () { const MyDiagram = dynamic( () => import('./gojs/MyDiagram'), { ssr: false } ) return ( <div> <MyDiagram /> </div> ) } }export default Index
Any suggestions?
Best Regard
Snorre Fossland
- List item
Posts: 2
Participants: 2
