尝试安装BRUIT.IO时出现错误:DOMException错误

时间:2019-06-17 10:20:07

标签: typescript ionic-framework

我正在尝试在离子应用程序上安装Bruit组件。

environment.ts文件:

export const environment =  {
    production: false,
    bruitConfig: {
      apiKey: "**********************",
      labels: {
        title: "Que pensez vous de l'application ?"
      },
      form: [
        {
          label: "User Interface",
          type: "rating",
          required: true,
          max: 5
        },
        {
          id: "agreement",
          type: "checkbox",
          label: "J'ai lu et j'accèpte les conditions d'utilisation",
          value: null
        }
      ]
    }
  }

HomeComponent.ts文件:

public readonly bruitConfig = environment.bruitConfig;

HomeComponent.html文件:

<bruit-io [config]="bruitConfig" (onError)="handleBruitError($event)"></bruit-io>

正在显示反馈模式,但是当我尝试提交表单时,出现以下错误:

build/1.js:13 BRUIT.IO error :  DOMException Error
    at console.error (file:///android_asset/www/build/1.js:13:216055)
    at file:///android_asset/www/build/1.js:13:219512
    at t.invoke (file:///android_asset/www/build/polyfills.js:3:14976)
    at Object.onInvoke (file:///android_asset/www/build/vendor.js:4247:33)
    at t.invoke (file:///android_asset/www/build/polyfills.js:3:14916)
    at r.run (file:///android_asset/www/build/polyfills.js:3:10143)
    at file:///android_asset/www/build/polyfills.js:3:20242
    at t.invokeTask (file:///android_asset/www/build/polyfills.js:3:15660)
    at Object.onInvokeTask (file:///android_asset/www/build/vendor.js:4238:33)
    at t.invokeTask (file:///android_asset/www/build/polyfills.js:3:15581)

0 个答案:

没有答案