Skip to content

Perry options error value #152

@dekathomas

Description

@dekathomas

I try to use perry js in a new HTML file and I get some error. This is my first time to use perry js. I import perry js from this link https://perry-js.netlify.com/bundle.js.

All links and javascript code I got from copy it from the perry js README.md.

This is the error message I receive

Error: [Perry Options]: "plugins" was supposed to be of type "array", but received "function ConsoleLogPlugin(reportInfo) {
console.log('[Perry Report Info]:', reportInfo);
}"

This is the full code of the javascript

function ConsoleLogPlugin(reportInfo) {
  console.log('[Perry Report Info]:', reportInfo);
}

const perry = new window.Perry({
  /* Enables log recording */
  log: true,
  /* Enables click recording */
  clicks: true,
  /* Enables screen recording */
  enableScreenRecording: true,
  /* Plugins are ways to handle the bug reporting submission */
  plugins: [ConsoleLogPlugin]
});

(async () => {
  await perry.render();
})();

Could anyone help me to solve this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions