I am currently attempting to install and utilize the css-element-queries library.
To install, I executed the following command:
npm i css-element-queries
Following that, I attempted to import the ResizeSensor
class from the library in this manner:
import { ResizeSensor } from 'css-element-queries';
Unfortunately, I encountered an error with the compiler:
An issue arose stating: Could not find a declaration file for module 'css-element-queries'. The path 'c:/PrjNET/Elevation3/FW/4.00/Mainline/Framework/Development/Client/ElevationJS/ngcore/node_modules/css-element-queries/index.js' is implicitly assigned an 'any' type. Consider using
or adding a new declaration file (.d.ts) containing `declare module 'css-element-queries';npm install @types/css-element-queries
In response to the error message, I ran the following npm command:
npm install @types/css-element-queries
However, another error was returned by the compiler:
The npm command returned a code of E404, indicating that @types/css-element-queries@latest could not be found.
How can I successfully import the css-element-queries library?