joint icon indicating copy to clipboard operation
joint copied to clipboard

Angular 2 and Joint js: Property 'devs' does not exist on type 'typeof shapes'

Open uroti opened this issue 9 years ago • 4 comments

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

uroti avatar May 01 '17 08:05 uroti

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?

uroti avatar May 02 '17 14:05 uroti

Nobody can help me?

uroti avatar May 08 '17 09:05 uroti

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

mahald avatar May 16 '17 07:05 mahald

Duplicate of #506.

kumilingus avatar Sep 26 '18 22:09 kumilingus