Is there a way to import a package called cssdom into Angular successfully?
For example, I tried importing it like this:
import * as CssDom from "cssdom";
However, I encountered the following error:
https://i.sstatic.net/LzZwQ.png
When attempting to create a new instance of CssDom using the code below:
const css = '.container { background-color: white; }';
const cssdom = new CssDom(css)
I also tried another method like this:
import {CssDom} from 'cssdom'
Is there a specific approach to importing third-party packages into Angular? Vue.js makes it simple, but it seems more challenging with TypeScript/Angular!