Replies: 2 comments
-
Hi, at first glance your configuration/setup looks fine to me. The error indicates that
|
Beta Was this translation helpful? Give feedback.
-
[hoelzl-florian] I played around a lot today with version of my dependencies, but to no success. My current workaround is an explicit conversion function: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
My code is similar to Workflow Example ('return graph;' reports the error):
import { RenderingContext, RectangularNodeView } from '@eclipse-glsp/client';
import { injectable } from 'inversify';
import * as snabbdom from 'snabbdom-jsx';
import { VNode } from 'snabbdom/vnode';
import { ComponentNode } from './mvp-af3-glsp-component-diagram-nodes';
const JSX = { createElement: snabbdom.svg }; // see tsconfig.json compiler options
@Injectable()
export class ComponentNodeView extends RectangularNodeView {
render(node: ComponentNode, context: RenderingContext): VNode {
const graph =
<rect class-sprotty-node={true} class-forkOrJoin={true}
class-mouseover={node.hoverFeedback} class-selected={node.selected}
width={10} height={Math.max(50, node.bounds.height)}>
;
return graph;
}
}
Seems like a setup problem to me. tsconfig.json contains in particular compiler options:
'jsx': 'react',
'reactNamespace': 'JSX',
'skipLibCheck': true,
'esModuleInterop': true,
'allowSyntheticDefaultImports': true
Maybe a PRO can help me out here.
original thread by hoelzl-florian
Beta Was this translation helpful? Give feedback.
All reactions