离子和电容器:如何将 capacitor.config.ts 文件更改为 capacitor.config.json 文件?

Ionic and Capacitor: How can i change the capacitor.config.ts file to a capacitor.config.json file?

我用电容器创建了一个 Angular/Ionic 项目。现在我想在我的 capacitor.config.json 中进行更改,但是这个文件丢失了?取而代之的是 capacitor.config.ts?!

我需要 JSON 文件,否则特定插件将无法工作!

这是我的目录和我的 package.json 的图片: Directory and Files

package.json file

我使用的版本有你需要的文件。 application files ionic version

如果可能请试用ionic 6.18.1版本

电容器 3 允许有 .json、.js 或 .ts 配置文件。

如果安装了 typescript,

npx cap init 命令将创建一个 .ts 文件 如果你不想要 .ts 文件,你可以删除它并创建一个 .json 文件,但无论配置文件扩展名是什么,一切都应该仍然有效。