Can't make the custom tool work

This issue has been tracked since 2022-06-20.

Following this tutorial: https://examples.unlayer.com/custom_tools/react-custom-tool

This is what I have in the component.js:

const React = window.unlayer.React

const Viewer = () => {
  return <div>I am a custom tool.</div>
}

// Custom Property Editor


unlayer.registerTool({
  type: "whatever",
  category: "contents",
  label: "Test Tool",
  icon: "fa-smile",
  values: {},
  options: { },
  renderer: {
    Viewer: Viewer,
    exporters: {
      web: function () {},
      email: function () {}
    }
  }
});

My editor page:

        <EmailEditor
          ref={emailEditorRef}
          projectId={85626}
          options={{
            customJS: [
              `https://app.dev.localhost/custom.js`,
            ]
          }}
        /> 

The error I have:
custom.js:9 Uncaught SyntaxError: Unexpected token '<' (at custom.js:9:12)

What am I doing wrong?

More Details About Repo
Owner Name unlayer
Repo Name react-email-editor
Full Name unlayer/react-email-editor
Language JavaScript
Created Date 2017-10-01
Updated Date 2022-12-05
Star Count 3598
Watcher Count 48
Fork Count 627
Issue Count 163

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date