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
I am using Require.js in my project and discovered that Fabric.js is not compatible with it. Fabric.js uses the function require() (from Node.js I assume) to load dependencies. Require.js also use a function called require() for something similar. These are different functions whose names are the same and are thus clashing. Effectively this means that Fabric.js cannot be loaded using Require.js
I am using Require.js in my project and discovered that Fabric.js is not compatible with it. Fabric.js uses the function
require()
(from Node.js I assume) to load dependencies. Require.js also use a function calledrequire()
for something similar. These are different functions whose names are the same and are thus clashing. Effectively this means that Fabric.js cannot be loaded using Require.jsThis is the bit of code where I found an error is logged if you attempt to load Fabric.js using Require.js. From https://github.com/kangax/fabric.js/blob/v1.1.0/src/object.class.js#L17
Is there any way around this kind of name clashing?
The text was updated successfully, but these errors were encountered: