Search code examples
javascriptpolymerweb-component

polymer.html: Uncaught TypeError: Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'


I have a Polymer web component that works stand-alone. However, upon bringing it into my app, I am getting a TypeError about dispatchEvent:

Uncaught TypeError: Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'

I am debugging this now but wanted to post this, as there isn't currently another single result that I can find about this error specifically related to Polymer.


Solution

  • The problem was that an earlier version of JayData is not compatible with webcomponents.

    I was using JayData and was on version 1.3.6.

    I've downloaded and updated to the latest version (1.5.6) and this has fixed the problem.