Encountering an Issue:
import {Canvas} from "fabric";
Error:(54, 33) TS2686:'fabric' refers to a UMD global, but the current file is a module. Consider adding an import instead.
In my Angular project with TypeScript, I am using fabric which is manually imported via angular-cli.
"scripts": [
"../node_modules/jquery/dist/jquery.min.js",
"./libs/jquery.base64.js",
"./store/signage_sdk.js",
"../node_modules/fabric/dist/fabric.js",
I have also included @types/fabric
How can I resolve this error?
Thanks, Sean