首页 文章

ionic 2 Module index没有导出成员SqlStorage

提问于
浏览
0

我正在使用ionic 2,我必须使用SqlStorage来创建查询,但它不是导入的 .

我有这个:

从'@ ionic / storage'导入{Storage,SqlStorage};

但它给了我这个错误:

打字稿错误模块'“/ home /../ node_modules/@ionic/storage/es2015/index”'没有导出的成员'SqlStorage' .

我的离子版是这样的:

Cordova CLI:6.4.0 Ionic Framework版本:2.3.0 Ionic CLI版本:2.2.1 Ionic App Lib版本:2.2.0 Ionic App脚本版本:1.1.4 ios-deploy版本:未安装ios-sim版本:未安装操作系统:Linux 4.4节点版本:v7.4.0 Xcode版本:未安装

请帮帮我

1 回答

  • 0

    我会尝试删除你的 node_modules 目录,然后运行 npm install

    这将重建您的 node_modules 目录并希望有效 .

相关问题