我启动了一个全新的ionic项目,并在项目根目录中安装了gridster.js和npm install gridster和npm install @types/jquery.gridster。但我无法导入已安装的定义。我使用以下语句:
import { Gridster } from '@types/jquery.gridster';
我认为这个import语句应该起作用,但它不起作用。VScode告诉我/home/user/git/Project/node_modules/@types/jquery.gridster/index.d.ts"不是一个模块,但是我还应该导入什么?
此外,我的项目node_modules/目录中还包含gridster/和@types/jquery.gridster/。
https://stackoverflow.com/questions/47848120
复制相似问题