Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perry options error value #152

Open
dekathomas opened this issue Jun 5, 2021 · 0 comments
Open

Perry options error value #152

dekathomas opened this issue Jun 5, 2021 · 0 comments

Comments

@dekathomas
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant