DM007
DM007

Reputation: 85

Loading json created in in fabricjs 1.7 to a canvas of version 3.4.0 gives type error

I am trying to load a json object (created using fabricjs version 1.7) in the the fabric version 3.4 using loadFromJson method. I am getting following error.

Uncaught TypeError: Cannot read property 'fromObject' of undefined

But if I load it using version 1.7 it works fine. Actually I am migrating my project from Version 1.7 to 3.4.0 version of fabric.

Upvotes: 0

Views: 148

Answers (1)

Durga
Durga

Reputation: 15604

As I can see from your question on google group, the class fabric.PathGroup is removed after v2.0, which gives type error.

You can find about this more in v2-breaking-changes and follow the given instruction.

Upvotes: 2

Related Questions