0

Angular 12 アプリでgocardless-nodejs api モジュールを使用しようとして、指示に従いました。

次のようにモジュールをインポートします。

const gocardless = require('gocardless-nodejs');
const constants = require("gocardless-nodejs/constants");

次に、クライアントを作成しようとしています:

const client = gocardless(
    [gcAccessToken],
    // Change this to constants.Environments.Live when you're ready to go live
    constants.Environments.Sandbox
);

しかし、このエラーが表示され続けます: ERROR TypeError: gocardless is not a function

4

0 に答える 0