That suggests you have loaded twitch-ext.min.js from your extension and not from Twitch.
Extension Helper Library
An extension’s iframe must import the Extension Helper JavaScript file, created and hosted by Twitch. It provides methods for dealing with authentication, receiving notifications of stream properties, and listening to PubSub events. Each HTML defined in the Asset Hosting section of your extension (Viewer, Config, Live Config) must load the Extension Helper. To do so, include this line:
<script src="https://extension-files.twitch.tv/helper/v1/twitch-ext.min.js"></script>
That sounds like the problem