After starting a new ionic project, I decided to include the gridster.js
library by running npm install gridster
and
npm install @types/jquery.gridster
in the root directory of my project. However, when trying to import the installed definitions, I encountered an issue with the following statement:
import { Gridster } from '@types/jquery.gridster';
Despite thinking that this import statement should work, it is not functioning as expected. VScode indicates that
/home/user/git/Project/node_modules/@types/jquery.gridster/index.d.ts"
is not recognized as a module. Is there something else that I need to import?
I have also confirmed that both gridster/
and @types/jquery.gridster/
are present in the node_modules/
directory of my project.