【问题标题】:Module not found: Error: Can't resolve 'capacitor.config.json' in 'node_modules\@codetrix-studio\capacitor-google-auth\dist\esm'找不到模块:错误:无法解析“node_modules\@codetrix-studio\capacitor-google-auth\dist\esm”中的“capacitor.config.json”
【发布时间】:2021-11-17 02:51:25
【问题描述】:

发生这种情况是因为我将 capacitor.congfig.json 更改为 capacitor.congfig.ts

npm i @codetrix-studio/capacitor-google-auth

对于电容角

谁能帮我解决这个问题?

【问题讨论】:

    标签: node.js angular node-modules capacitor


    【解决方案1】:

    您可以直接从 Github 存储库(而不是 npm 存储库)安装依赖项,它似乎是一个更大的版本(Github 上的 3.1.0 > NPM 上的 3.0.2):

    "@codetrix-studio/capacitor-google-auth": "git://github.com:CodetrixStudio/CapacitorGoogleAuth.git"
    

    这是作者的回复:https://github.com/CodetrixStudio/CapacitorGoogleAuth/issues/119#issuecomment-974704558

    【讨论】:

      【解决方案2】:

      我必须添加电容器.congfig.json 以及电容器.congfig.ts 才能使其工作。我猜它只是暂时的,仅适用于这个插件 atm。

      【讨论】:

        猜你喜欢
        • 2021-02-20
        • 2019-07-15
        • 1970-01-01
        • 2019-01-12
        • 2021-05-21
        • 2022-10-26
        • 1970-01-01
        • 2021-01-13
        • 2019-06-13
        相关资源
        最近更新 更多