Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

GoJs with nextjs and Node. does not work

$
0
0

@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

image

Any suggestions?

Best Regard
Snorre Fossland

  • List item

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles