You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello and good day. Sorry if the question is silly but can you give an advice about the mistake i've got?
I've installed library throw command "npm install litegraph.js" and now i see it's folder inside of my modules folder. I imported it like this " import LGraph from 'litegraph.js' ". React shows me an error
ReferenceError: LGraph is not defined
My code:
import React, { Component } from 'react';
import {Layer, Rect, Stage, Group} from 'react-konva';
import LiteGraph from 'litegraph.js'
import LGraph from 'litegraph.js'
class MyRect extends Component
{
render()
{
var graph = new LGraph();
Hello and good day. Sorry if the question is silly but can you give an advice about the mistake i've got?
I've installed library throw command "npm install litegraph.js" and now i see it's folder inside of my modules folder. I imported it like this " import LGraph from 'litegraph.js' ". React shows me an error
ReferenceError: LGraph is not defined
My code:
import React, { Component } from 'react';
import {Layer, Rect, Stage, Group} from 'react-konva';
import LiteGraph from 'litegraph.js'
import LGraph from 'litegraph.js'
class MyRect extends Component
{
render()
{
var graph = new LGraph();
}
export default MyRect;
The text was updated successfully, but these errors were encountered: