Angular 2 and Joint js: Property 'devs' does not exist on type 'typeof shapes'
Hi to all,
I'm using jointjs in a Angular 2 component, if a create an object like let rect2 = new joint.shapes.basic.Rect I have no problem insted if I want to create an object like let c1 = new joint.shapes.devs.Coupled I have this error: Property 'devs' does not exist on type 'typeof shapes'.
What is the problem?
Thank you
I solved the previous problem, now the project starts but in the web console I have this error:
TypeError: Backbone is undefined
<anonymous>
<anonymous>
__webpack_require__
__webpack_require__
webpackJsonpCallback
<anonymous>
Do you have ideas?
Nobody can help me?
u need to add backbone.js to your angluar-cli.json in the scripts section (if ur are using angular-cli). u can either install it using npm or dowload it from here https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.3.3/backbone.js.
if u are not using the cli u just need to import this script in your html
note: u also need the other dependencies as seen here:
https://www.jointjs.com/opensource#Download-JointJS
Duplicate of #506.