preactjs / preact-compat

ATTENTION: The React compatibility layer for Preact has moved to the main preact repo.
http://npm.im/preact-compat
MIT License
949 stars 148 forks source link

Preact not working with unstated #482

Closed mikemoorenyc closed 6 years ago

mikemoorenyc commented 6 years ago

I'm having problems running unstated with preact. I get the following error on init:

Uncaught TypeError: ContainerItem is not a constructor at eval (unstated.es.js?f55a:128) at Array.map () at Subscribe._createInstances (unstated.es.js?f55a:119) at eval (unstated.es.js?f55a:150) at Consumer.render (index.js?9c3f:133) at callMethod (index.js?daef:480) at Consumer.eval [as render] (index.js?daef:488) at renderComponent (component.js?4adf:89) at renderComponent (component.js?4adf:114) at renderComponent (component.js?4adf:114)

I'm using preact-boilerplate

mikemoorenyc commented 6 years ago

I think this is bad code on my end. Closing