Uncaught (in promise) TypeError: Cannot read property 'enable' of undefined

1k views Asked by At

I am trying to setup a basic cornerstone react app. I have followed this example given by the cornerstone themselves. What I have tried to change is to convert the class based component to a functional based component reason being I am new to both react and cornerstone and functional components somehow make more sense to me then class based.

I have also setup a codesandbox example here for you to take a look. I am getting this error of

Uncaught (in promise) TypeError: Cannot read property 'enable' of undefined

but I am able to element in console.log in the very block.

0

There are 0 answers