目录
报错信息
- ERROR in ../node_modules/@ionic/storage/storage.d.ts:113:9 - error TS1086: An accessor cannot be declared in an ambient context.
- 113 get driver(): string | null; 【注意此处,报错语句是检测类型的】
- [ERROR] An error occurred while running subprocess ng.
- 翻译:不能在环境上下文中声明访问器 —— An accessor cannot be declared in an ambient context.
- 翻译:运行子进程 ng 时出错 —— An error occurred while running subprocess ng.
- 因为存在 检测类型 的报错,所以可以把这部分对应额代码进行删除,看看能不能运行起来
/** * Get the name of the driver being used. * @returns Name of the driver */ // get driver(): string | null; // 注释掉此句
扩展分析
- 参考博客:https://blog.csdn.net/qq_40319828/article/details/108514263
- 该博客大意:版本太高,和其他包版本不一致导致
- 参考博客的解决方案如下:
ionic 打包报错 —— ERROR in node_modules/@ionic/storage/storage.d.ts:113:9 - error TS1086: An accesso ...
最新推荐文章于 2022-06-18 13:25:51 发布