-
Hello there, I am trying to use the library in a personal project. I am using it on a IIFE function that works as I have been using it without fabric before. I have installed it using npm install fabric --save and then trying to import it in my javascript function with: import { fabric } from "fabric"; but I got the message that was not found: export 'fabric' (imported as 'fabric') was not found in 'fabric' (possible exports: ActiveSelection, BaseBrush, BaseFabricObject, Canvas, Canvas2dFilterBackend, CanvasDOMManager, Circle, CircleBrush, ClipPathLayout, Color, Control, Ellipse, FabricImage, FabricObject, FabricText, FitContentLayout, FixedLayout, Gradient, Group, IText, Image, InteractiveFabricObject, Intersection, LayoutManager, LayoutStrategy, Line, Object, Observable, Path, Pattern, PatternBrush, PencilBrush, Point, Polygon, Polyline, Rect, Shadow, SprayBrush, StaticCanvas, StaticCanvasDOMManager, Text, Textbox, Triangle, WebGLFilterBackend, cache, classRegistry, config, controlsUtils, createCollectionMixin, filters, getCSSRules, getEnv, getFabricDocument, getFabricWindow, getFilterBackend, iMatrix, initFilterBackend, isPutImageFaster, isWebGLPipelineState, loadSVGFromString, loadSVGFromURL, parseAttributes, parseFontDeclaration, parsePointsAttribute, parseSVGDocument, parseStyleAttribute, parseTransformAttribute, runningAnimations, setEnv, setFilterBackend, util, version) I have been trying to find help about this and have not found anything. Please, I am pretty new on this, any help is welcome. The code looks like this:
Thanks, Jesús |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
please read this |
Beta Was this translation helpful? Give feedback.
please read this
https://fabricjs.github.io/docs/upgrading/upgrading-to-fabric-60/